[vlc-devel] Resubmitting [PATCH] 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. Increased buffer size.

Sergey Radionov rsatom at gmail.com
Fri Apr 13 10:48:10 CEST 2012


2012/4/13 Sergey Radionov <rsatom at gmail.com>:
> 2012/4/13 Sergey Radionov <rsatom at gmail.com>:
>> 2012/4/13 Tord Andersson <tord.andersson at endian.se>:
>>> ---
>>>  npapi/vlcplugin_base.cpp |    8 ++++++++
>>>  1 files changed, 8 insertions(+), 0 deletions(-)
>>>
>>> diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
>>> index 1d9db49..18a3be0 100644
>>> --- a/npapi/vlcplugin_base.cpp
>>> +++ b/npapi/vlcplugin_base.cpp
>>> @@ -438,6 +438,8 @@ NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
>>>     ppsz_argv[ppsz_argc++] = "--no-video-title-show";
>>>     ppsz_argv[ppsz_argc++] = "--no-xlib";
>>>
>>> +    char psz_input_slave_opts[255] = "";/* input slave options */
>>> +
>>>     /* parse plugin arguments */
>>>     for( int i = 0; (i < argc) && (ppsz_argc < 32); i++ )
>>>     {
>>> @@ -464,6 +466,12 @@ NPError VlcPluginBase::init(int argc, char* const argn[], char* const argv[])
>>>         {
>>>             set_enable_fs( boolValue(argv[i]) );
>>>         }
>>> +        else if( !strcmp( argn[i], "input-slave" ) )
>>> +        {
>>> +            strcat(psz_input_slave_opts, "--input-slave=");
> but maybe  use "inputslave" since JS does not supporting names with "-"?
sorry for multiple messages :)
but one more thing you maybe should see:
http://code.google.com/p/vc-axnp-vlc/source/detail?r=e4dc8438362bb447ff90deb7c0df2253fff0b165&name=work
it's for ActiveX.

>
>>> +            strncat(psz_input_slave_opts, argv[i], sizeof(psz_input_slave_opts) - strlen(psz_input_slave_opts) - 1);
>>> +            ppsz_argv[ppsz_argc++] = psz_input_slave_opts;
>>> +        }
>>>         else if( !strcmp( argn[i], "mute" ) )
>>>         {
>>>             if( boolValue(argv[i]) )
>>> --
>>> 1.7.5.4
>>>
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> http://mailman.videolan.org/listinfo/vlc-devel
>>
>> LGTM



More information about the vlc-devel mailing list