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:
Axel Dörfler 2004-01-23 07:06:12 +00:00
parent db95389956
commit b6b1e538a7

View File

@ -1,18 +1,27 @@
/*
** Copyright 2004, Marcus Overhagen. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include "DecoderPlugin.h"
#include "PluginManager.h"
#include <MediaFormats.h>
#include <stdio.h>
#include <string.h>
Decoder::Decoder()
{
fChunkProvider = 0;
}
Decoder::~Decoder()
{
delete fChunkProvider;
}
status_t
Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
@ -21,6 +30,7 @@ Decoder::GetNextChunk(void **chunkBuffer, int32 *chunkSize,
return fChunkProvider->GetNextChunk(chunkBuffer, chunkSize, mediaHeader);
}
void
Decoder::Setup(ChunkProvider *provider)
{
@ -28,26 +38,11 @@ Decoder::Setup(ChunkProvider *provider)
fChunkProvider = provider;
}
// #pragma mark -
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;
}