gstpad: Remove unused variable do_event_actions

do_event_actions was always used as TRUE
This commit is contained in:
Edward Hervey 2011-06-18 17:35:41 +02:00
parent 9eee73dcc6
commit a885082a16

View file

@ -4212,7 +4212,7 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
{ {
GstFlowReturn ret; GstFlowReturn ret;
GstPad *peerpad; GstPad *peerpad;
gboolean result, do_event_actions = TRUE; gboolean result;
gboolean stored = FALSE; gboolean stored = FALSE;
g_return_val_if_fail (GST_IS_PAD (pad), FALSE); g_return_val_if_fail (GST_IS_PAD (pad), FALSE);
@ -4264,9 +4264,6 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
} }
/* backwards compatibility mode for caps */ /* backwards compatibility mode for caps */
if (do_event_actions) {
do_event_actions = FALSE;
switch (GST_EVENT_TYPE (event)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_CAPS: case GST_EVENT_CAPS:
{ {
@ -4306,7 +4303,7 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
default: default:
break; break;
} }
}
if (G_UNLIKELY (GST_PAD_IS_FLUSHING (pad))) if (G_UNLIKELY (GST_PAD_IS_FLUSHING (pad)))
goto flushed; goto flushed;