[vlc-devel] commit: prevent #1312 from occuring (refs #1312) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Mar 28 17:49:08 CET 2008
vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Fri Mar 28 18:49:01 2008 +0200| [69d572ca8a6bc6f9de85ed471fbb30e430fb0fe2]
prevent #1312 from occuring (refs #1312)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69d572ca8a6bc6f9de85ed471fbb30e430fb0fe2
---
modules/stream_out/display.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/display.c b/modules/stream_out/display.c
index 009f984..75082ac 100644
--- a/modules/stream_out/display.c
+++ b/modules/stream_out/display.c
@@ -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;
More information about the vlc-devel
mailing list