Commit 7f6dafd4 authored by Marvin Scholz's avatar Marvin Scholz

macosx: Add helper to set rd item demux filter

parent 8e10fb53
......@@ -82,4 +82,11 @@
*/
- (void)setSoutForPlaylist:(playlist_t*)playlist;
/**
Sets the passed playlist’s demux filter to the demux filter of the \c VLCRendererItem.
\param playlist The playlist for which to set the demux filter
*/
- (void)setDemuxFilterForPlaylist:(playlist_t*)playlist;
@end
......@@ -93,6 +93,16 @@
var_SetString(playlist , "sout", sout.UTF8String);
}
- (void)setDemuxFilterForPlaylist:(playlist_t*)playlist
{
const char *item_demux_filter = vlc_renderer_item_demux_filter(_rendererItem);
if (!playlist || !item_demux_filter)
return;
var_SetString(playlist, "demux-filter", item_demux_filter);
}
- (BOOL)isEqual:(id)object
{
if (![object isKindOfClass:[VLCRendererItem class]]) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment