[gst-devel] [PATCH] seg fault in gstsnapshot.c

Stephane LOEUILLET stephane.loeuillet at tiscali.fr
Sat Dec 18 17:21:09 CET 2004


hi,

Le samedi 18 décembre 2004 à 16:30 -0800, Jack, Paul a écrit :
> $ gst-launch-0.8 videotestsrc num-buffers=10 ! snapshot frame=5
> location=z.png ! fakesink
> RUNNING pipeline ...
> Segmentation fault
> 
> The problem was caused by what looks like a stray signal handler:  The
> snapshot_handler function was setting a flag to TRUE, so the
> gstsnapshot_chain
> function was trying to write the PNG image twice.  After the first attempt,
> the PNG library structures are destroyed, so the second attempt seg faults.
> 
> The attached patch eliminates the snapshot_handler function.  The only thing

please report the bug in gnome bugzilla :
  product = GStreamer
  module =gst-plugins
attach the patch there
put a name like : [PATCH] [snapshot] segfault in signal handler
and finally, add PATCH to keywords

yes, i know, it's a borring process. but patches sent to the ML has
great chances to be forgotten/never applied/...

thanks for your patch btw

bye

-- 
Stephane LOEUILLET <stephane.loeuillet at tiscali.fr>





More information about the gstreamer-devel mailing list