[vlc-devel] [Patch] Sending a signal when a vout is created/destroyed
Rémi Denis-Courmont
remi at remlab.net
Tue Feb 2 12:34:23 CET 2010
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.
(If you want to convert a video to picture, then you really want to use
vmem or smem, that's entirely different).
--
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis
More information about the vlc-devel
mailing list