[vlc-devel] [PATCH] nVidia affinity

David R Robison drrobison at openroadsconsulting.com
Tue Sep 3 18:51:13 CEST 2013


So, while I thought the GetInteger was working becuse it was returning 
my value of "0", it was the default return for a missing value:

static inline int64_t var_GetInteger( vlc_object_t *p_obj, const char 
*psz_name )
{
     vlc_value_t val;
     if( !var_GetChecked( p_obj, psz_name, VLC_VAR_INTEGER, &val ) )
         return val.i_int;
     else
         return 0;
}

So it appears that it is not finding my parameter value when it is set 
via the

libvlc.libvlc_media_add_option(mediaInstance, mediaOption);

function. Any thoughts?
David

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison at openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526

On 9/3/2013 12:21 PM, Jean-Baptiste Kempf wrote:
> Advanced option or not.
>
> On 03 Sep, David R Robison wrote :
>> What is the last Boolean parameter on the add_integer function? David
>>
>> David R Robison
>> Open Roads Consulting, Inc.
>> 103 Watson Road, Chesapeake, VA 23320
>> phone: (757) 546-3401
>> e-mail: drrobison at openroadsconsulting.com
>> web: http://openroadsconsulting.com
>> blog: http://therobe.blogspot.com
>> book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
>>
>> On 9/3/2013 12:15 PM, David R Robison wrote:
>>> Yes, it works if I specify it in libvlc_new but not in
>>> libvlc_media_add_options.
>>> David
>>>
>>> David R Robison
>>> Open Roads Consulting, Inc.
>>> 103 Watson Road, Chesapeake, VA 23320
>>> phone: (757) 546-3401
>>> e-mail: drrobison at openroadsconsulting.com
>>> web: http://openroadsconsulting.com
>>> blog: http://therobe.blogspot.com
>>> book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
>>>
>>> On 9/3/2013 11:30 AM, Jean-Baptiste Kempf wrote:
>>>> On 03 Sep, David R Robison wrote :
>>>>> libvlc.libvlc_new(libvlcArgs.length, libvlcArgs);
>>>>> Here the libvlcArgs do not have the gpu-affinity parameter set. When I
>>>>> go to play the video it calls
>>>>>
>>>>> libvlc.libvlc_media_add_option(mediaInstance, mediaOption);
>>>>>
>>>>> Here i add the gpu-affinity. then I call
>>>>>
>>>>> libvlc.libvlc_media_player_play(mediaPlayerInstance);
>>>>>
>>>>> Which starts the video playing.
>>>> Does it work if you pass it at the libvlcArgs stage?
>>>>
>>>
>>> This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
>>> If you are not the intended recipient, please delete this email immediately.
>>>
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>>
>>
>> This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
>> If you are not the intended recipient, please delete this email immediately.



This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.




More information about the vlc-devel mailing list