[vlc-commits] es_out: assert that queries are valid

Thomas Guillem git at videolan.org
Fri Feb 28 20:45:57 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 27 14:14:37 2020 +0100| [b2d6b8e17eca09c5b0f09c1138ba83c717026b5a] | committer: Thomas Guillem

es_out: assert that queries are valid

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

 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 9f3666965b..ff9cdbcc82 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -3223,10 +3223,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();
     }
 }
 



More information about the vlc-commits mailing list