[vlc-commits] macosx: Add helper to set rd item demux filter
Marvin Scholz
git at videolan.org
Wed Jul 12 23:08:36 CEST 2017
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Wed Jul 12 23:03:37 2017 +0200| [7f6dafd48b092126c4fd4f2ecf937aa5f84cc4ff] | committer: Marvin Scholz
macosx: Add helper to set rd item demux filter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f6dafd48b092126c4fd4f2ecf937aa5f84cc4ff
---
modules/gui/macosx/VLCRendererItem.h | 7 +++++++
modules/gui/macosx/VLCRendererItem.m | 10 ++++++++++
2 files changed, 17 insertions(+)
diff --git a/modules/gui/macosx/VLCRendererItem.h b/modules/gui/macosx/VLCRendererItem.h
index 47f80725bb..c034d9abc7 100644
--- a/modules/gui/macosx/VLCRendererItem.h
+++ b/modules/gui/macosx/VLCRendererItem.h
@@ -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
diff --git a/modules/gui/macosx/VLCRendererItem.m b/modules/gui/macosx/VLCRendererItem.m
index 614f866d0c..813cec267b 100644
--- a/modules/gui/macosx/VLCRendererItem.m
+++ b/modules/gui/macosx/VLCRendererItem.m
@@ -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]]) {
More information about the vlc-commits
mailing list