[vlc-devel] [PATCH] Add a libvlc_set_video_output function

Rémi Denis-Courmont remi at remlab.net
Wed Feb 12 11:17:46 CET 2014

On Wed, 12 Feb 2014 11:18:57 +0200, Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> In my use case, no I can't disable video. Having an invisble window
> could work, but it feels weird to output to something not shown
> instead of disabling.
> Using callbacks, hence vmem, is doable, would probably work, but why
> would I want to copy frames to not use those afterward?

There are two good ways, internally, to disable video. Setting the "video"
variable to false, or setting the video to -1. Setting vout to dummy is
much less efficient (and unclean). IMHO, you should either extend the track
selection functions to operate even when there is no active input thread,
or add functions to set/get the audio, spu and video boolean variables.

>>> This works fine on linux as, when I want to render to a widget, the
>>> proper vout is set by libvlc_media_player_set_xwindow. However,
>>> neither _set_hwnd nor _set_nsobject are forcing the appropriate vout
>>> back, thus leading dummy vout to still be used.
>> If you think there is a bug, you are welcome to fix it.
> I don't think it's a bug.

It is definitely a bug if LibVLC ends up ignoring the selected output
window. It is a separate issue, but an issue nevertheless.

Rémi Denis-Courmont
Sent from my collocated server

More information about the vlc-devel mailing list