tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / kits / media / DecoderPlugin.cpp
blobe3b8a0e9156aeda6b65d055dacff196e3018d1ff
1 /*
2 * Copyright 2004, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "DecoderPlugin.h"
8 #include <stdio.h>
9 #include <string.h>
11 #include <MediaFormats.h>
14 Decoder::Decoder()
16 fChunkProvider(NULL),
17 fMediaPlugin(NULL)
22 Decoder::~Decoder()
24 delete fChunkProvider;
28 status_t
29 Decoder::GetNextChunk(const void **chunkBuffer, size_t *chunkSize,
30 media_header *mediaHeader)
32 return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
36 void
37 Decoder::SetChunkProvider(ChunkProvider *provider)
39 delete fChunkProvider;
40 fChunkProvider = provider;
44 status_t
45 Decoder::Perform(perform_code code, void* _data)
47 return B_OK;
50 void Decoder::_ReservedDecoder1() {}
51 void Decoder::_ReservedDecoder2() {}
52 void Decoder::_ReservedDecoder3() {}
53 void Decoder::_ReservedDecoder4() {}
54 void Decoder::_ReservedDecoder5() {}
56 // #pragma mark -
59 DecoderPlugin::DecoderPlugin()