[vlc-devel] [PATCH] Simplified npapi plugin slave-input support. Add the ability to specify a sound source through slave-input, for example a v4l video capture device with alsa audio.
Tord Andersson
tord.andersson at endian.se
Mon Apr 16 09:52:10 CEST 2012
---
npapi/vlcplugin_base.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index 1d9db49..fc2486d 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -464,6 +464,11 @@ NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
{
set_enable_fs( boolValue(argv[i]) );
}
+ else if( !strcmp( argn[i], "input-slave" ) )
+ {
+ ppsz_argv[ppsz_argc++] = "--input-slave";
+ ppsz_argv[ppsz_argc++] = argv[i];
+ }
else if( !strcmp( argn[i], "mute" ) )
{
if( boolValue(argv[i]) )
--
1.7.9.5
More information about the vlc-devel
mailing list