diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2013-11-28 16:09:04 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2013-11-28 16:09:04 +0000 |
commit | b8f689a9d97b7a90a3c40d5249c964e35a000b4a (patch) | |
tree | 79c66bb7453b5055aff095f978899fa2c1725099 /gst/videofilter | |
parent | e8edecc56eb71d88a89a953489ba55a946a926ec (diff) | |
download | gstreamer-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.c | 4 |
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; |