[vlc-devel] [PATCH 10/10] gui:qt: always add the cc_demux filter even if not needed
Steve Lhomme
robux4 at videolabs.io
Tue May 31 13:55:39 CEST 2016
it won't be used if the sout is not a Chromecast
patch not needed if the default demux filters are added by default
--
replaces https://patches.videolan.org/patch/13529/
---
modules/gui/qt/dialogs/renderer.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/dialogs/renderer.cpp b/modules/gui/qt/dialogs/renderer.cpp
index 37f5342..3007273 100644
--- a/modules/gui/qt/dialogs/renderer.cpp
+++ b/modules/gui/qt/dialogs/renderer.cpp
@@ -227,15 +227,21 @@ void RendererDialog::discoveryEventReceived( const vlc_event_t * p_event )
void RendererDialog::setSout( const vlc_renderer_item *p_item )
{
std::stringstream s_sout;
+ std::stringstream s_demux_filter;
+ const char *psz_out = NULL;
if ( p_item )
{
- const char *psz_out = vlc_renderer_item_sout( p_item );
+ psz_out = vlc_renderer_item_sout( p_item );
if ( psz_out )
+ {
s_sout << '#' << psz_out;
+ s_demux_filter << "cc_demux";
+ }
}
msg_Dbg( p_intf, "using sout: '%s'", s_sout.str().c_str() );
var_SetString( THEPL, "sout", s_sout.str().c_str() );
+ var_SetString( THEPL, "demux-filter", s_demux_filter.str().c_str() );
}
bool RendererItem::isItemSout( const char *psz_sout, bool as_output ) const
--
2.7.0.windows.1
More information about the vlc-devel
mailing list