[vlc-devel] [Patch] Sending a signal when a vout is created/destroyed

Laurent Aimar fenrir at via.ecp.fr
Tue Feb 2 12:43:55 CET 2010


On Tue, Feb 02, 2010, Laurent Aimar wrote:
> On Tue, Feb 02, 2010, Rémi Denis-Courmont wrote:
> > On Tue, 2 Feb 2010 10:33:27 +0100, Hugo Beauzee-Luyssen
> > <beauze.h at gmail.com> wrote:
> > > In the end, is there anyway to know when a snapshot could be taken,
> > > that won't be flagged as work arround or bug ?
> > 
> > I don't see the need to know that.
> > 
> > By definition, the snapshot function takes whatever picture is visible now.
> > If no picture is visible, it takes nothing. This is the normal behavior.
> > 
> > > I'd like to avoid polling "has_vout()" as much as possible, as it's
> > > definitely an ugly way of doing things, and it can lead to infinite
> > > loop in case something goes wrong (e.g. no codec found, or anything
> > > that can cause the vout not to be created actually...)
> > 
> > If the user tries to take a snapshot when there is no video, (s)he expect
> > it to fail.
> > I don't see any reason to poll at the programming level.
> 
>  As I already told, I do find useless to display (or to make clickable) a
> snapshot button on the GUI when it is going to fail... and so it is useful
> to know when there is video.
 It may also be used to show/hide the video widget the libvlc user provides
(but I dunno if there is another way, I don't know libvlc APIl).

-- 
fenrir




More information about the vlc-devel mailing list