]> git.sesse.net Git - vlc/blobdiff - include/vlc_stream.h
Selection is almost working correctly
[vlc] / include / vlc_stream.h
index 0de036c1088aeaa126e9c4257c30f26ac9911b47..fdaa37f2dd8b7228278dd5c9a2fd3a953e554286 100644 (file)
@@ -123,6 +123,9 @@ static inline int stream_Control( stream_t *s, int i_query, ... )
     va_list args;
     int     i_result;
 
+    if ( s == NULL )
+        return VLC_EGENERIC;
+
     va_start( args, i_query );
     i_result = s->pf_control( s, i_query, args );
     va_end( args );