projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70016db
)
scenechange: fix crash on startup
author
Vineeth T M
<vineeth.tm@samsung.com>
Thu, 14 Aug 2014 04:49:13 +0000
(10:19 +0530)
committer
Tim-Philipp Müller
<tim@centricular.com>
Thu, 14 Aug 2014 19:33:59 +0000
(20:33 +0100)
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
patch
|
blob
|
history
diff --git
a/gst/videofilters/gstscenechange.c
b/gst/videofilters/gstscenechange.c
index
d5d7fb4
..
7abfc8b
100644
(file)
--- 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;
}