chromecast: remove useless NULL check
authorThomas Guillem <thomas@gllm.fr>
Mon, 29 Jan 2018 15:17:36 +0000 (16:17 +0100)
committerThomas Guillem <thomas@gllm.fr>
Wed, 31 Jan 2018 15:25:33 +0000 (16:25 +0100)
modules/stream_out/chromecast/cast.cpp

index b19194f..3bfd24c 100644 (file)
@@ -733,7 +733,7 @@ static int Control(sout_stream_t *p_stream, int i_query, va_list args)
     {
         bool *b = va_arg( args, bool * );
         /* check if the Chromecast to be done playing */
-        *b = p_sys->p_intf == NULL || p_sys->p_intf->isFinishedPlaying();
+        *b = p_sys->p_intf->isFinishedPlaying();
         return VLC_SUCCESS;
     }