[vlc-devel] [PATCH 6/8] es_out: assert that queries are valid

Thomas Guillem thomas at gllm.fr
Thu Feb 27 14:55:45 CET 2020


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

diff --git a/src/input/es_out.c b/src/input/es_out.c
index ebd91cb1d0b..df16ef8504e 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3225,10 +3225,7 @@ static int EsOutVaControlLocked( es_out_t *out, int i_query, va_list args )
             return input_DecoderSetSpuHighlight( p_es->p_dec, spu_hl );
         return VLC_EGENERIC;
     }
-    default:
-        msg_Err( p_sys->p_input, "unknown query 0x%x in %s", i_query,
-                 __func__  );
-        return VLC_EGENERIC;
+    default: vlc_assert_unreachable();
     }
 }
 
-- 
2.20.1



More information about the vlc-devel mailing list