mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
This commit is contained in:
parent
e8edecc56e
commit
b8f689a9d9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue