[vlc-commits] transcode: fix identical branches warning

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


vlc | branch: master | Lyndon Brown <jnqnfe at gmail.com> | Sat Sep  5 18:59:01 2020 +0100| [9662e1c0c6aebbbabdf12cc2fc2623ad89750a32] | committer: Alexandre Janniaux

transcode: fix identical branches warning

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

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

 modules/stream_out/transcode/transcode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index 8842cd1174..019deadc47 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -326,9 +326,11 @@ static void SetVideoEncoderConfig( sout_stream_t *p_stream, transcode_encoder_co
     p_cfg->video.threads.i_count = var_GetInteger( p_stream, SOUT_CFG_PREFIX "threads" );
     p_cfg->video.threads.pool_size = var_GetInteger( p_stream, SOUT_CFG_PREFIX "pool-size" );
 
+#if VLC_THREAD_PRIORITY_OUTPUT != VLC_THREAD_PRIORITY_VIDEO
     if( var_GetBool( p_stream, SOUT_CFG_PREFIX "high-priority" ) )
         p_cfg->video.threads.i_priority = VLC_THREAD_PRIORITY_OUTPUT;
     else
+#endif
         p_cfg->video.threads.i_priority = VLC_THREAD_PRIORITY_VIDEO;
 }
 



More information about the vlc-commits mailing list