Encoders will most likely be found by media_codec_info, not by media_format,

changed method signature accordingly and disabled the code for now, since
the media_server communication has not been adapted yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31985 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-07-30 17:52:14 +00:00
parent 37b6b027ef
commit efd1469d4f
2 changed files with 9 additions and 13 deletions

View File

@ -49,9 +49,8 @@ public:
void DestroyWriter(Writer* writer);
status_t CreateEncoder(Encoder** encoder,
const media_format& format);
status_t CreateEncoder(Encoder** encoder,
const media_codec_info& mci);
const media_codec_info* codecInfo,
uint32 flags);
status_t GetEncoderInfo(Encoder* encoder,
media_codec_info* _info) const;
void DestroyEncoder(Encoder* encoder);

View File

@ -252,10 +252,12 @@ PluginManager::DestroyWriter(Writer* writer)
status_t
PluginManager::CreateEncoder(Encoder** _encoder, const media_format& format)
PluginManager::CreateEncoder(Encoder** _encoder,
const media_codec_info* codecInfo, uint32 flags)
{
TRACE("PluginManager::CreateEncoder enter\n");
#if 0
// get decoder for this format from the server
server_get_encoder_for_format_request request;
server_get_encoder_for_format_reply reply;
@ -295,15 +297,10 @@ PluginManager::CreateEncoder(Encoder** _encoder, const media_format& format)
TRACE("PluginManager::CreateEncoder leave\n");
return B_OK;
}
status_t
PluginManager::CreateEncoder(Encoder** encoder, const media_codec_info& mci)
{
// TODO
debugger("not implemented");
return B_ERROR;
#else
TRACE("PluginManager::CreateEncoder leave\n");
return B_NOT_SUPPORTED;
#endif
}