[vlc-commits] chromecast: remove useless NULL check

Thomas Guillem git at videolan.org
Thu Feb 1 11:26:22 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jan 29 16:17:36 2018 +0100| [afa45faa10e8f55b251617c2985044b6fa98b1e4] | committer: Thomas Guillem

chromecast: remove useless NULL check

(cherry picked from commit c75c369079f383d097e879d0b4506b4ec05cd40c)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/stream_out/chromecast/cast.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index fd0b30bfe7..d97d3926d7 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -735,7 +735,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;
     }
 



More information about the vlc-commits mailing list