[vlc-commits] chromecast: use input vars instead of controls

Thomas Guillem git at videolan.org
Thu Jul 12 12:08:35 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 12 12:01:49 2018 +0200| [587bfea416517a4d52e28daec2e51117ff3483fd] | committer: Thomas Guillem

chromecast: use input vars instead of controls

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

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

diff --git a/modules/stream_out/chromecast/chromecast_demux.cpp b/modules/stream_out/chromecast/chromecast_demux.cpp
index 01cb30046d..915298c6e1 100644
--- a/modules/stream_out/chromecast/chromecast_demux.cpp
+++ b/modules/stream_out/chromecast/chromecast_demux.cpp
@@ -460,7 +460,7 @@ static void on_paused_changed_cb( void *data, bool paused )
 
     input_thread_t *p_input = p_demux->p_next->p_input;
     if( p_input )
-        input_Control( p_input, INPUT_SET_STATE, paused ? PAUSE_S : PLAYING_S );
+        var_SetInteger( p_input, "state", paused ? PAUSE_S : PLAYING_S );
 }
 
 static int Demux( demux_t *p_demux_filter )



More information about the vlc-commits mailing list