mpeg2enc: break statement unnecessary

Code flow never arrives to the break statements due to the goto's. So the
breaks are unnecessary.

https://bugzilla.gnome.org/show_bug.cgi?id=736942
This commit is contained in:
Luis de Bethencourt 2014-09-25 15:45:57 +01:00
parent c9283c95f6
commit 97ed6a2668

View file

@ -448,7 +448,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* no special action as there is not much to flush; /* no special action as there is not much to flush;
* neither is it possible to halt the mpeg encoding loop */ * neither is it possible to halt the mpeg encoding loop */
goto done; goto done;
break;
case GST_EVENT_FLUSH_STOP: case GST_EVENT_FLUSH_STOP:
/* forward event */ /* forward event */
result = gst_pad_push_event (enc->srcpad, event); result = gst_pad_push_event (enc->srcpad, event);
@ -461,7 +460,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
enc->srcresult = GST_FLOW_OK; enc->srcresult = GST_FLOW_OK;
GST_MPEG2ENC_MUTEX_UNLOCK (enc); GST_MPEG2ENC_MUTEX_UNLOCK (enc);
goto done; goto done;
break;
case GST_EVENT_EOS: case GST_EVENT_EOS:
/* inform the encoding task that it can stop now */ /* inform the encoding task that it can stop now */
GST_MPEG2ENC_MUTEX_LOCK (enc); GST_MPEG2ENC_MUTEX_LOCK (enc);
@ -472,7 +470,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* eat this event for now, task will send eos when finished */ /* eat this event for now, task will send eos when finished */
gst_event_unref (event); gst_event_unref (event);
goto done; goto done;
break;
case GST_EVENT_CAPS: case GST_EVENT_CAPS:
{ {
GstCaps *caps; GstCaps *caps;
@ -481,7 +478,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
result = gst_mpeg2enc_setcaps (enc, pad, caps); result = gst_mpeg2enc_setcaps (enc, pad, caps);
gst_event_unref (event); gst_event_unref (event);
goto done; goto done;
break;
} }
default: default:
/* for a serialized event, wait until an earlier buffer is gone, /* for a serialized event, wait until an earlier buffer is gone,