vlc | branch: master | Steve Lhomme <[email protected]> | Tue Mar 22 11:48:26 2016 +0100| [8bdfa41e64432b018b35191e36807cd66189586c] | committer: Jean-Baptiste Kempf
chromecast:sout: fix crash when pf_control is NULL > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8bdfa41e64432b018b35191e36807cd66189586c --- modules/stream_out/chromecast/cast.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp index 81d04c0..e9126d4 100644 --- a/modules/stream_out/chromecast/cast.cpp +++ b/modules/stream_out/chromecast/cast.cpp @@ -145,6 +145,9 @@ static int Control(sout_stream_t *p_stream, int i_query, va_list args) { sout_stream_sys_t *p_sys = p_stream->p_sys; + if ( !p_sys->p_out->pf_control ) + return VLC_EGENERIC; + return p_sys->p_out->pf_control( p_sys->p_out, i_query, args ); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
