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

Hugo Beauzée-Luyssen hugo at beauzee.fr
Tue Feb 11 23:57:13 CET 2014


On Tue, Feb 11, 2014 at 9:20 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> For video, the problem never existed to begin with. We already have setters
> for the parent window - this also covers monitor selection. And those setters

I'm assuming you're referring to
libvlc_media_player_set_{xwindow,hwnd,nsobject}, which indeed are
enough for most usages.
In my specific case however, I'd like to use the dummy vout in some
specific case, which is not possible (unless I missed the proper way
to do so), except by setting it globally, using --vout=dummy as
libvlc_new's argv parameter.
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.

> never depended on which video output plugin was used (though it depends on
> windowing system - that is unavoidable). Worse yet, your patch is of
> absolutely no use in portable code, since the possible values are system-
> specific.
>

I think this is up to libvlc user to take care of this, just like it's
the case for the libvlc_media_player_set_{xwindow,hwnd,nsobject}
functions.

Regards,

-- 
Hugo Beauzée-Luyssen
mail: hugo at beauzee.fr
skype: beauze.h



More information about the vlc-devel mailing list