GNOME Bugzilla – Bug 683865
gst-launch segfaults when plugin is not correctly init'ed
Last modified: 2012-09-14 08:40:55 UTC
after porting my elements from 0.10 to 1.0 api, i ran into crashes which were apparently caused by incorrect GST_PLUGIN_DEFINE / G_DEFINE_TYPE parameters in my plugin stacktraces showed that the _is_renderer and _is_parser functions in gstsubtitleoverlay.c perfrom strstr in NULL strings in this case another issue is in gst_element_factory_list_is_type
Created attachment 224096 [details] [review] playbin: don't segfault in incorrectly init'ed plugins
Created attachment 224100 [details] [review] playbin: don't segfault in incorrectly init'ed plugins, display error
Comment on attachment 224096 [details] [review] playbin: don't segfault in incorrectly init'ed plugins patch for gstreamer (core)
commit 0bc87ee5d95beedd55207802a8c2926c1b98fabc Author: Andreas Frisch <fraxinas@opendreambox.org> Date: Wed Sep 12 14:14:31 2012 +0200 elementfactory: don't crash if no element klass has been set https://bugzilla.gnome.org/show_bug.cgi?id=683865 commit 6e469b2ac52b949ed1d1ffaad48c672bef6885e2 Author: Andreas Frisch <fraxinas@opendreambox.org> Date: Wed Sep 12 14:11:28 2012 +0200 playbin: subtitleoverlay: don't segfault in incorrectly init'ed plugins https://bugzilla.gnome.org/show_bug.cgi?id=683865