diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-08 23:33:03 +0000 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-02-08 23:33:22 +0000 |
commit | 4922b7f6b2c085a848e14b78a826c23f6d4767b6 (patch) | |
tree | 3986620e4d6270f2b9d46bdd349b02e7e2f6977c | |
parent | 332846173848205a2c0ea72e40f060477dade8d2 (diff) |
rtspclientsink: clean switch statements
Coverity demands for fallthrough statements to be clearly commented,
to distinguish from accidental fall throughs. And it also needs all
cases to finish with a break, even if the break is never going to be
executed like in the case of a continue jump.
CID #1352039
CID #1352040
-rw-r--r-- | gst/rtsp-sink/gstrtspclientsink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp-sink/gstrtspclientsink.c b/gst/rtsp-sink/gstrtspclientsink.c index 3d5076f..8c378eb 100644 --- a/gst/rtsp-sink/gstrtspclientsink.c +++ b/gst/rtsp-sink/gstrtspclientsink.c @@ -1949,6 +1949,7 @@ gst_rtsp_client_sink_loop_rx (GstRTSPClientSink * sink) goto server_eof; } continue; + break; case GST_RTSP_ENET: GST_DEBUG_OBJECT (sink, "An ethernet problem occured."); default: @@ -4414,6 +4415,7 @@ gst_rtsp_client_sink_handle_message (GstBin * bin, GstMessage * message) gst_element_state_get_name (newstate), gst_element_state_get_name (pending), rtsp_client_sink->prerolled); } + /* fallthrough */ } default: { |