BCodecRoster: Remove MakeFormatFor
* I want to introduce a new way for plugins to register for a format. Supporting the old FormatManager is too painful at this point and not worth the effort.
This commit is contained in:
@@ -56,14 +56,6 @@ public:
|
|||||||
// To choose the API I did a search among the Haiku codebase and
|
// To choose the API I did a search among the Haiku codebase and
|
||||||
// programs for which we have the source available.
|
// programs for which we have the source available.
|
||||||
|
|
||||||
// TODO: At some point move all implementations here
|
|
||||||
|
|
||||||
static status_t MakeFormatFor(
|
|
||||||
const media_format_description* descriptions,
|
|
||||||
int32 descriptionCount,
|
|
||||||
media_format& format, uint32 flags,
|
|
||||||
void* _reserved);
|
|
||||||
|
|
||||||
// TODO: media_format_family: really?
|
// TODO: media_format_family: really?
|
||||||
static status_t GetCodecInfo(media_codec_info* _codecInfo,
|
static status_t GetCodecInfo(media_codec_info* _codecInfo,
|
||||||
media_format_family* _formatFamily,
|
media_format_family* _formatFamily,
|
||||||
|
|||||||
@@ -269,14 +269,4 @@ BCodecRoster::GetCodecInfo(media_codec_info* codecInfo,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
status_t
|
|
||||||
BCodecRoster::MakeFormatFor(const media_format_description* descriptions,
|
|
||||||
int32 descriptionCount, media_format& format, uint32 flags,
|
|
||||||
void* _reserved)
|
|
||||||
{
|
|
||||||
return FormatManager::GetInstance()->MakeFormatFor(descriptions,
|
|
||||||
descriptionCount, format, flags, _reserved);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace BCodecKit
|
} // namespace BCodecKit
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ BMediaFormats::MakeFormatFor(const media_format_description* descriptions,
|
|||||||
int32 descriptionCount, media_format* format, uint32 flags,
|
int32 descriptionCount, media_format* format, uint32 flags,
|
||||||
void* _reserved)
|
void* _reserved)
|
||||||
{
|
{
|
||||||
return BCodecKit::BCodecRoster::MakeFormatFor(descriptions,
|
return FormatManager::GetInstance()->MakeFormatFor(descriptions,
|
||||||
descriptionCount, *format, flags, _reserved);
|
descriptionCount, *format, flags, _reserved);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user