[vlc-commits] decoder: fix identical branches warning

Lyndon Brown git at videolan.org
Fri Sep 18 21:01:51 CEST 2020


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Sun Sep  6 02:50:00 2020 +0100| [9e60205dfedfd939e711414a0f6c6cf3aa0edbf6] | committer: Alexandre Janniaux

decoder: fix identical branches warning

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

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

 src/input/decoder.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index 3d1f2c2206..cc3f69d740 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2045,9 +2045,11 @@ decoder_New( vlc_object_t *p_parent, const es_format_t *fmt,
 
     assert( p_dec->fmt_in.i_cat != UNKNOWN_ES );
 
+#if VLC_THREAD_PRIORITY_AUDIO != VLC_THREAD_PRIORITY_VIDEO
     if( p_dec->fmt_in.i_cat == AUDIO_ES )
         i_priority = VLC_THREAD_PRIORITY_AUDIO;
     else
+#endif
         i_priority = VLC_THREAD_PRIORITY_VIDEO;
 
 #ifdef ENABLE_SOUT



More information about the vlc-commits mailing list