[vlc-devel] [PATCH] nVidia affinity
David R Robison
drrobison at openroadsconsulting.com
Tue Sep 3 17:23:18 CEST 2013
I can but I'm using a java-to-vlc bridge. So I'll try my best to
translate it to the c-code.
Here is my initialization creation
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.
I define the parameter in vlc as
add_integer("gpu-affinity", -1, HW_GPU_AFFINITY_TEXT, HW_GPU_AFFINITY_TEXT, true)
Where I set the default value of -1. However, I guessed at the last
argument of true. Is this correct?
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:13 AM, Jean-Baptiste Kempf wrote:
> On 03 Sep, David R Robison wrote :
>> So I create a media player factory and pass in some basic argument, but
>> not the gpu-affinity argument. When I call the play_media function I
>> pass in extra arguments including the gpu-affinity. With InheritInteger
>> I always get back the default value of (-1) however with GetInteger I
>> get the correct value I passed into the play_media function. Maybe I'm
>> doing something wrong or there is a problem with how I defined the
>> parameter. David
> Can you show the init code?
>
>
> Best regards,
>
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