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

Jack, Paul pjack at sfaf.org
Sat Dec 18 16:33:05 CET 2004


$ 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

snapshot_handler did was set the flag; I'm not sure what its original intent
was.

-Paul

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_gstsnapshot.txt
Type: application/octet-stream
Size: 1128 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20041218/2f4586f0/attachment.obj>


More information about the gstreamer-devel mailing list