summaryrefslogtreecommitdiff
path: root/gst/videofilter
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2013-11-28 16:09:04 +0000
committerTim-Philipp Müller <tim@centricular.com>2013-11-28 16:09:04 +0000
commitb8f689a9d97b7a90a3c40d5249c964e35a000b4a (patch)
tree79c66bb7453b5055aff095f978899fa2c1725099 /gst/videofilter
parente8edecc56eb71d88a89a953489ba55a946a926ec (diff)
downloadgstreamer-plugins-good-b8f689a9d97b7a90a3c40d5249c964e35a000b4a.tar.gz
videoflip: don't crash on tag events without orientation tag
Would crash in g_free() trying to free an uninitialised pointer. https://bugzilla.gnome.org/show_bug.cgi?id=719497
Diffstat (limited to 'gst/videofilter')
-rw-r--r--gst/videofilter/gstvideoflip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c
index a4903fd99..1c9eba2ec 100644
--- a/gst/videofilter/gstvideoflip.c
+++ b/gst/videofilter/gstvideoflip.c
@@ -1217,9 +1217,9 @@ gst_video_flip_sink_event (GstBaseTransform * trans, GstEvent * event)
gst_video_flip_set_method (vf, GST_VIDEO_FLIP_METHOD_VERT, TRUE);
else if (!g_strcmp0 ("flip-rotate-270", orientation))
gst_video_flip_set_method (vf, GST_VIDEO_FLIP_METHOD_OTHER, TRUE);
- }
- g_free (orientation);
+ g_free (orientation);
+ }
break;
default:
break;