mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
inputselector: remove always-true check
event can't be NULL, it has been dereferenced by GST_EVENT_TYPE (), and no case frees the pointer. Remove unnecessary check which will always be True. CID #1308955
This commit is contained in:
parent
231e77338c
commit
c635f38cdc
1 changed files with 13 additions and 15 deletions
|
@ -627,7 +627,6 @@ gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
GST_INPUT_SELECTOR_UNLOCK (sel);
|
GST_INPUT_SELECTOR_UNLOCK (sel);
|
||||||
if (new_tags)
|
if (new_tags)
|
||||||
g_object_notify (G_OBJECT (selpad), "tags");
|
g_object_notify (G_OBJECT (selpad), "tags");
|
||||||
if (event) {
|
|
||||||
if (forward) {
|
if (forward) {
|
||||||
GST_DEBUG_OBJECT (pad, "forwarding event");
|
GST_DEBUG_OBJECT (pad, "forwarding event");
|
||||||
res = gst_pad_push_event (sel->srcpad, event);
|
res = gst_pad_push_event (sel->srcpad, event);
|
||||||
|
@ -642,7 +641,6 @@ gst_selector_pad_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
selpad->events_pending = TRUE;
|
selpad->events_pending = TRUE;
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue