Revert "Media Kit: use the B_WRITABLE flag in plugins"
This reverts hrev54422. I'm not sure what I was trying to fix with this change. The way the media kit is currently designed, the list of supported formats (including for reading) comes only from writer plugins. This means it is impossible to have a decode-only plugin currently. And the list is called "fWriterFileFormats" but in fact is the only list used to implement get_next_file_formats, so it should contain all formats. This current setup works for the ffmpeg plugin, but it should be cleaned. This fixes Youtube playback. The problem was simply that we were not reporting support for any of the Youtube video formats anymore. Unfortunately, the app_server crashes when playing Youtube videos are still there. Change-Id: Ie5025cd48e2ab23b616bad49eec1401331ffb0ed Reviewed-on: https://review.haiku-os.org/c/haiku/+/4103 Reviewed-by: X512 <danger_mail@list.ru> Reviewed-by: Panagiotis Vasilopoulos <hello@alwayslivid.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
This commit is contained in:
parent
ddffdd2506
commit
303187e29b
@ -519,13 +519,9 @@ AddOnManager::_RegisterWriter(WriterPlugin* writer, const entry_ref& ref)
|
||||
return;
|
||||
}
|
||||
for (uint i = 0 ; i < count ; i++) {
|
||||
media_file_format fileFormat = fileFormats[i];
|
||||
// Ignore non-writable formats
|
||||
if ((fileFormat.capabilities & media_file_format::B_WRITABLE) == 0)
|
||||
continue;
|
||||
|
||||
// Generate a proper ID before inserting this format, this encodes
|
||||
// the specific plugin in the media_file_format.
|
||||
media_file_format fileFormat = fileFormats[i];
|
||||
fileFormat.id.node = ref.directory;
|
||||
fileFormat.id.device = ref.device;
|
||||
fileFormat.id.internal_id = info.internalID;
|
||||
|
Loading…
x
Reference in New Issue
Block a user