[vlc-commits] sout: chromecast: don't call pf_ directly/use sout stream helper

Francois Cartegnie git at videolan.org
Wed Jan 31 13:55:51 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan 30 19:08:44 2018 +0100| [61cc84ed460009caf044815b23939d2e4904fe11] | committer: Francois Cartegnie

sout: chromecast: don't call pf_ directly/use sout stream helper

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

 modules/stream_out/chromecast/cast.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index fd0b30bfe7..b19194f12a 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -251,9 +251,7 @@ static void ProxyFlush(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
 
 static int ProxyControl(sout_stream_t *p_stream, int i_query, va_list args)
 {
-    if (!p_stream->p_next->pf_control)
-        return VLC_EGENERIC;
-    return p_stream->p_next->pf_control(p_stream->p_next, i_query, args);
+    return sout_StreamControlVa( p_stream->p_next, i_query, args );
 }
 
 static int ProxyOpen(vlc_object_t *p_this)



More information about the vlc-commits mailing list