[vlc-devel] [PATCH] --snapshot-format option always fallbacks to png fix

christophe courtaut christophe.courtaut at gmail.com
Sun Mar 29 17:51:43 CEST 2009

This patch fixes the fact that snapshot was always taken in png format
because --snapshot-format option was not working.
In fact, the --snapshot-format option is taking either png or jpg ( as
shown in the help ), but to check this format,
vlc was using image_Ext2Fourrc function which one is waiting for
parameters such a filename ( ex : "image.jpg" ) to get the format.
I wrote a function image_Type2Fourcc, which one work with the
extension only, and so on refactored the function image_Ext2Fourcc
not to duplicate code.

Best regards.

Christophe Courtaut
VLMC developer
Etudiant a Epitech, Ingenierie en Informatique (Promo 2010)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fixed-bug-in-snapshot-format.patch
Type: application/octet-stream
Size: 3403 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090329/d156e222/attachment.obj>

More information about the vlc-devel mailing list