xref: /haiku/src/kits/media/DecoderPlugin.cpp (revision db10640de90f7f9519ba2da9577b7c1af3c64f6b)
1 /*
2 ** Copyright 2004, Marcus Overhagen. All rights reserved.
3 ** Distributed under the terms of the OpenBeOS License.
4 */
5 
6 
7 #include "DecoderPlugin.h"
8 
9 #include <MediaFormats.h>
10 #include <stdio.h>
11 #include <string.h>
12 
13 
14 Decoder::Decoder()
15 {
16 	fChunkProvider = 0;
17 }
18 
19 
20 Decoder::~Decoder()
21 {
22 	delete fChunkProvider;
23 }
24 
25 
26 status_t
27 Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
28 					  media_header *mediaHeader)
29 {
30 	return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
31 }
32 
33 
34 void
35 Decoder::Setup(ChunkProvider *provider)
36 {
37 	delete fChunkProvider;
38 	fChunkProvider = provider;
39 }
40 
41 
42 //	#pragma mark -
43 
44 
45 DecoderPlugin::DecoderPlugin()
46 {
47 }
48 
49