GNOME Bugzilla – Bug 734763
scenechange: fix crash on startup
Last modified: 2014-08-14 19:38:09 UTC
While testing SceneChange element using the following command gst-launch-1.0 -v filesrc location=../test1.wmv ! decodebin ! videoconvert ! scenechange ! videoconvert ! autovideosink when gst_video_frame_map() is called, "scenechange->oldinfo" was not populated first time. Hence it was resulting in SIGSEGV fault. Hence adding the below statement memcpy (&scenechange->oldinfo, &frame->info, sizeof (GstVideoInfo)); when scenechange->oldbuf is NULL
Created attachment 283344 [details] [review] Fix for SIGSEGV fault when using scenechange element
*** Bug 734812 has been marked as a duplicate of this bug. ***
Many thanks for the patch, pushed to master and 1.4 branch: commit 8caf5b736000ed1dbd60006b681cd641359fbcd3 Author: Vineeth T M <vineeth.tm@samsung.com> Date: Thu Aug 14 10:19:13 2014 +0530 scenechange: fix crash on startup gst_video_frame_map() was using the oldinfo GstVideoInfo before it's been populated, resulting in a crash right at the start. https://bugzilla.gnome.org/show_bug.cgi?id=734763 videotestsrc ! scenechange ! xivmagesink is enough to show the problem by the way :)