diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2014-08-14 10:19:13 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-08-14 20:33:59 +0100 |
commit | facc534237d0ffd8487fece3bdda3d76c2922918 (patch) | |
tree | 7b55e0ea0580fb35f7591232ed1e4cbabb4f0649 /gst | |
parent | 70016dbb484416345a294f1226154b96472faaf7 (diff) |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videofilters/gstscenechange.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videofilters/gstscenechange.c b/gst/videofilters/gstscenechange.c index d5d7fb4d1..7abfc8b1d 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; } |