Removed all now unused functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6236 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
db95389956
commit
b6b1e538a7
@ -1,19 +1,28 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Marcus Overhagen. All rights reserved.
|
||||||
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "DecoderPlugin.h"
|
#include "DecoderPlugin.h"
|
||||||
#include "PluginManager.h"
|
|
||||||
#include <MediaFormats.h>
|
#include <MediaFormats.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
Decoder::Decoder()
|
Decoder::Decoder()
|
||||||
{
|
{
|
||||||
fChunkProvider = 0;
|
fChunkProvider = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Decoder::~Decoder()
|
Decoder::~Decoder()
|
||||||
{
|
{
|
||||||
delete fChunkProvider;
|
delete fChunkProvider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
status_t
|
||||||
Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
|
Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
|
||||||
media_header *mediaHeader)
|
media_header *mediaHeader)
|
||||||
@ -21,6 +30,7 @@ Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
|
|||||||
return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
|
return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Decoder::Setup(ChunkProvider *provider)
|
Decoder::Setup(ChunkProvider *provider)
|
||||||
{
|
{
|
||||||
@ -28,26 +38,11 @@ Decoder::Setup(ChunkProvider *provider)
|
|||||||
fChunkProvider = provider;
|
fChunkProvider = provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark -
|
||||||
|
|
||||||
|
|
||||||
DecoderPlugin::DecoderPlugin()
|
DecoderPlugin::DecoderPlugin()
|
||||||
: fPublishHook(0)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef status_t (*publish_func)(DecoderPlugin *, const char *, const char *, const char *, const char *);
|
|
||||||
|
|
||||||
status_t
|
|
||||||
DecoderPlugin::PublishDecoder(const char *meta_description,
|
|
||||||
const char *short_name,
|
|
||||||
const char *pretty_name,
|
|
||||||
const char *default_mapping /* = 0 */)
|
|
||||||
{
|
|
||||||
if (fPublishHook)
|
|
||||||
return ((publish_func)fPublishHook)(this, meta_description, short_name, pretty_name, default_mapping);
|
|
||||||
return B_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
DecoderPlugin::Setup(void *publish_hook)
|
|
||||||
{
|
|
||||||
fPublishHook = publish_hook;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user