]> git.sesse.net Git - vlc/commitdiff
prevent #1312 from occuring (refs #1312)
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Mar 2008 16:49:01 +0000 (18:49 +0200)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 28 Mar 2008 16:49:01 +0000 (18:49 +0200)
modules/stream_out/display.c

index 009f984383085fb0ff030e28814188b6825496a4..75082ace3b5052709baa37cfb18906b0c54984dc 100644 (file)
@@ -96,6 +96,13 @@ static int Open( vlc_object_t *p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys;
 
+    /* FIXME: this sucks big time (see #1312) */
+    if( var_CreateGetBool( p_stream, "sout-keep" ) )
+    {
+        msg_Err( p_stream, "cannot use #display sout with sout-keep option" );
+        return VLC_EGENERIC;
+    }
+
     p_sys = malloc( sizeof( sout_stream_sys_t ) );
     if( p_sys == NULL )
         return VLC_ENOMEM;