GNOME Bugzilla – Bug 163437
[ffenc_*] Encoders segfault on exit
Last modified: 2005-01-09 22:04:05 UTC
gdb --args `which gst-launch-0.8` videotestsrc ! video/x-raw-rgb,width=640,height=480,framerate=2.0 ! identity error-after=1 ! ffcolorspace ! ffenc_mpeg4 ! fakesink I've tried also with ffenc_mjpeg, ffenc_msmpeg4 and ffenc_h263p. They give the same error on exit and (sometime) segfault. (process:31284): GLib-GObject-WARNING **: invalid unclassed pointer in cast to `GstObject' (process:31284): GStreamer-CRITICAL **: file gstelement.c: line 3277 (gst_element_get_scheduler): assertion `GST_IS_ELEMENT (element)' failed The backtrace is: (gdb) bt
+ Trace 54292
I think all elements do this on the gst-launch commandline. Can you reproduce it without gst-launch?
Yes, i can reproduce it. I'll attach a simple example. If i remove latest gst_object_unref there are no warnings but... i don't like memleaks :)
Created attachment 35755 [details] test case
Created attachment 35756 [details] [review] possible fix Does this fix it?
yup, fixed, thanks!