MediaConverter: Filter out non-writable media file formats. Fixes #10724
* With the muxer & demuxer tables merged in hrev47063, the list of output formats included media file formats that weren't flagged as writable Signed-off-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
a87c4748e5
commit
575984d2e5
@@ -701,6 +701,8 @@ MediaConverterWindow::BuildFormatMenu()
|
|||||||
int32 cookie = 0;
|
int32 cookie = 0;
|
||||||
FileFormatMenuItem* ff_item;
|
FileFormatMenuItem* ff_item;
|
||||||
while (get_next_file_format(&cookie, &mfi) == B_OK) {
|
while (get_next_file_format(&cookie, &mfi) == B_OK) {
|
||||||
|
if ((mfi.capabilities & media_file_format::B_WRITABLE) == 0)
|
||||||
|
continue;
|
||||||
ff_item = new FileFormatMenuItem(&mfi);
|
ff_item = new FileFormatMenuItem(&mfi);
|
||||||
menu->AddItem(ff_item);
|
menu->AddItem(ff_item);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user