From facc534237d0ffd8487fece3bdda3d76c2922918 Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Thu, 14 Aug 2014 10:19:13 +0530 Subject: [PATCH] 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 --- gst/videofilters/gstscenechange.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videofilters/gstscenechange.c b/gst/videofilters/gstscenechange.c index d5d7fb4..7abfc8b 100644 --- a/gst/videofilters/gstscenechange.c +++ b/gst/videofilters/gstscenechange.c @@ -184,6 +184,7 @@ gst_scene_change_transform_frame_ip (GstVideoFilter * filter, scenechange->n_diffs = 0; memset (scenechange->diffs, 0, sizeof (double) * SC_N_DIFFS); scenechange->oldbuf = gst_buffer_ref (frame->buffer); + memcpy (&scenechange->oldinfo, &frame->info, sizeof (GstVideoInfo)); return GST_FLOW_OK; } -- 2.7.4