xref: /haiku/src/kits/media/ReaderPlugin.cpp (revision 99d027cd0238c1d86da86d7c3f4200509ccc61a6)
1 /*
2  * Copyright 2009-2010, Stephan Aßmus <superstippi@gmx.de>.
3  * Distributed under the terms of the MIT License.
4  *
5  * Copyright 2004, Marcus Overhagen. All rights reserved.
6  * Distributed under the terms of the MIT License.
7  */
8 
9 #include "ReaderPlugin.h"
10 
11 #include <stdio.h>
12 
13 
14 Reader::Reader()
15 	:
16 	fSource(NULL),
17 	fMediaPlugin(NULL)
18 {
19 }
20 
21 
22 Reader::~Reader()
23 {
24 }
25 
26 
27 status_t
28 Reader::GetMetaData(BMessage* _data)
29 {
30 	return B_NOT_SUPPORTED;
31 }
32 
33 
34 status_t
35 Reader::Seek(void* cookie, uint32 flags, int64* frame, bigtime_t* time)
36 {
37 	return B_NOT_SUPPORTED;
38 }
39 
40 
41 status_t
42 Reader::FindKeyFrame(void* cookie, uint32 flags, int64* frame, bigtime_t* time)
43 {
44 	return B_NOT_SUPPORTED;
45 }
46 
47 
48 status_t
49 Reader::GetStreamMetaData(void* cookie, BMessage* _data)
50 {
51 	return B_NOT_SUPPORTED;
52 }
53 
54 
55 BDataIO*
56 Reader::Source() const
57 {
58 	return fSource;
59 }
60 
61 
62 void
63 Reader::Setup(BDataIO *source)
64 {
65 	fSource = source;
66 }
67 
68 
69 status_t
70 Reader::Perform(perform_code code, void* _data)
71 {
72 	return B_OK;
73 }
74 
75 
76 void Reader::_ReservedReader1() {}
77 void Reader::_ReservedReader2() {}
78 void Reader::_ReservedReader3() {}
79 void Reader::_ReservedReader4() {}
80 void Reader::_ReservedReader5() {}
81 
82