xref: /haiku/src/kits/media/DecoderPlugin.cpp (revision f09ba8ea46ba2f4e482d7cd03e8eb77f37a60663)
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  :	fChunkProvider(NULL)
16 {
17 }
18 
19 
20 Decoder::~Decoder()
21 {
22 	delete fChunkProvider;
23 }
24 
25 
26 status_t
27 Decoder::GetNextChunk(const void **chunkBuffer, size_t *chunkSize,
28 					  media_header *mediaHeader)
29 {
30 	return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
31 }
32 
33 
34 void
35 Decoder::SetChunkProvider(ChunkProvider *provider)
36 {
37 	delete fChunkProvider;
38 	fChunkProvider = provider;
39 }
40 
41 
42 //	#pragma mark -
43 
44 
45 DecoderPlugin::DecoderPlugin()
46 {
47 }
48