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:
Barrett17
2018-12-28 23:01:02 +01:00
parent fa911df6e6
commit e7933432e9
3 changed files with 1 additions and 19 deletions
-8
View File
@@ -56,14 +56,6 @@ public:
// To choose the API I did a search among the Haiku codebase and
// 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?
static status_t GetCodecInfo(media_codec_info* _codecInfo,
media_format_family* _formatFamily,
-10
View File
@@ -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
+1 -1
View File
@@ -524,7 +524,7 @@ BMediaFormats::MakeFormatFor(const media_format_description* descriptions,
int32 descriptionCount, media_format* format, uint32 flags,
void* _reserved)
{
return BCodecKit::BCodecRoster::MakeFormatFor(descriptions,
return FormatManager::GetInstance()->MakeFormatFor(descriptions,
descriptionCount, *format, flags, _reserved);
}