summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth T M <vineeth.tm@samsung.com>2014-09-03 15:23:26 +0530
committerSebastian Dröge <sebastian@centricular.com>2014-09-04 12:51:47 +0300
commit2755e05d78d68e28ca2a49d196e8466bc88f9d6e (patch)
treee09a5406f2b243044d5d19782ba33ad8db2b50b1
parent18f01194fd67c9dbfa676f3885a15fbe20537a50 (diff)
downloadgstreamer-plugins-base-2755e05d78d68e28ca2a49d196e8466bc88f9d6e.tar.gz
videorate: GstStructure refcount critical message
s3 is not being initialized when run in a loop and the same was being freed, which resulted in the crash https://bugzilla.gnome.org/show_bug.cgi?id=735952
-rw-r--r--gst/videorate/gstvideorate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c
index 14d628ff1..f8915c66b 100644
--- a/gst/videorate/gstvideorate.c
+++ b/gst/videorate/gstvideorate.c
@@ -366,6 +366,7 @@ gst_video_rate_transform_caps (GstBaseTransform * trans,
s1 = gst_structure_copy (s);
s2 = gst_structure_copy (s);
+ s3 = NULL;
if (videorate->drop_only) {
gint min_num = 0, min_denom = 1;