[vlc-commits] es_out: fix fall through warnings

Rémi Denis-Courmont git at videolan.org
Thu Jun 29 22:34:40 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 22:25:40 2017 +0300| [1d3af6af3769e77da29fdc2a64425bffb12e0993] | committer: Rémi Denis-Courmont

es_out: fix fall through warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1d3af6af3769e77da29fdc2a64425bffb12e0993
---

 src/input/es_out_timeshift.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c
index c8fa798561..ff5bd6bdbe 100644
--- a/src/input/es_out_timeshift.c
+++ b/src/input/es_out_timeshift.c
@@ -737,9 +737,6 @@ static int ControlLocked( es_out_t *p_out, int i_query, va_list args )
         return es_out_ControlModifyPcrSystem( p_sys->p_out, b_absolute, i_system );
     }
 
-    default:
-        msg_Err( p_sys->p_input, "Unknown es_out_Control query !" );
-        // ft
     /* Invalid queries for this es_out level */
     case ES_OUT_SET_ES_BY_ID:
     case ES_OUT_RESTART_ES_BY_ID:
@@ -747,6 +744,7 @@ static int ControlLocked( es_out_t *p_out, int i_query, va_list args )
     case ES_OUT_GET_ES_OBJECTS_BY_ID:
     case ES_OUT_SET_DELAY:
     case ES_OUT_SET_RECORD_STATE:
+    default:
         vlc_assert_unreachable();
         return VLC_EGENERIC;
     }
@@ -1634,8 +1632,6 @@ static void CmdCleanControl( ts_cmd_t *p_cmd )
             es_format_Clean( p_cmd->u.control.u.es_fmt.p_fmt );
             free( p_cmd->u.control.u.es_fmt.p_fmt );
         }
-        // ft
-    default:
         break;
     }
 }



More information about the vlc-commits mailing list