summaryrefslogtreecommitdiff
path: root/ext/mpeg2enc
diff options
context:
space:
mode:
authorLuis de Bethencourt <luis.bg@samsung.com>2014-09-25 15:45:57 +0100
committerLuis de Bethencourt <luis.bg@samsung.com>2014-09-25 15:45:57 +0100
commit97ed6a26684e40b99458ca11c39a8145c8a2b5eb (patch)
tree4f768d7cb9cc7d736dcc5a692f08c8ff3b9fad14 /ext/mpeg2enc
parentc9283c95f602b8b35514871bbd488ffbb67ff2fb (diff)
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
Diffstat (limited to 'ext/mpeg2enc')
-rw-r--r--ext/mpeg2enc/gstmpeg2enc.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/mpeg2enc/gstmpeg2enc.cc b/ext/mpeg2enc/gstmpeg2enc.cc
index 539a69089..9e631e3d1 100644
--- a/ext/mpeg2enc/gstmpeg2enc.cc
+++ b/ext/mpeg2enc/gstmpeg2enc.cc
@@ -448,7 +448,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
/* no special action as there is not much to flush;
* neither is it possible to halt the mpeg encoding loop */
goto done;
- break;
case GST_EVENT_FLUSH_STOP:
/* forward 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;
GST_MPEG2ENC_MUTEX_UNLOCK (enc);
goto done;
- break;
case GST_EVENT_EOS:
/* inform the encoding task that it can stop now */
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 */
gst_event_unref (event);
goto done;
- break;
case GST_EVENT_CAPS:
{
GstCaps *caps;
@@ -481,7 +478,6 @@ gst_mpeg2enc_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
result = gst_mpeg2enc_setcaps (enc, pad, caps);
gst_event_unref (event);
goto done;
- break;
}
default:
/* for a serialized event, wait until an earlier buffer is gone,