[vlc-devel] [PATCH] qt: add the cc_demuxer with the sout by default
Steve Lhomme
robux4 at videolabs.io
Thu Jun 23 13:34:49 CEST 2016
It won't be used if the Chromecast sout is not use for the file being played.
---
modules/gui/qt/actions_manager.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/gui/qt/actions_manager.cpp b/modules/gui/qt/actions_manager.cpp
index 05e1de8..de26210 100644
--- a/modules/gui/qt/actions_manager.cpp
+++ b/modules/gui/qt/actions_manager.cpp
@@ -372,13 +372,16 @@ void ActionsManager::ScanRendererAction(bool checked)
void ActionsManager::RendererSelected( QAction *selected )
{
QString s_sout;
+ QString s_demux_filter;
QVariant data = selected->data();
if (data.canConvert<QString>())
{
s_sout.append('#');
s_sout.append(data.toString());
+ s_demux_filter = QString("cc_demux");
}
msg_Dbg( p_intf, "using sout: '%s'", s_sout.toUtf8().constData() );
var_SetString( THEPL, "sout", s_sout.toUtf8().constData() );
+ var_SetString( THEPL, "demux-filter", s_demux_filter.toUtf8().constData() );
}
--
2.8.2
More information about the vlc-devel
mailing list