[vlc-devel] commit: Improved record behaviour when sout is disabled. (Laurent Aimar )

git version control git at videolan.org
Wed Aug 27 01:22:49 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Aug 27 01:19:34 2008 +0200| [0ceca03f5db577ec4ed59a55336b1c06cbaa636b] | committer: Laurent Aimar 

Improved record behaviour when sout is disabled.

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

 src/input/input.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index fbcd1c2..933dbc7 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2372,10 +2372,13 @@ static int InputSourceInit( input_thread_t *p_input,
 
         if( demux_Control( in->p_demux, DEMUX_CAN_RECORD, &in->b_can_stream_record ) )
             in->b_can_stream_record = false;
+#ifdef ENABLE_SOUT
         if( !var_CreateGetBool( p_input, "input-record-native" ) )
             in->b_can_stream_record = false;
-        var_SetBool( p_input, "can-record", true ); // Is it still needed ?
-
+        var_SetBool( p_input, "can-record", true );
+#else
+        var_SetBool( p_input, "can-record", in->b_can_stream_record );
+#endif
         /* Get title from demux */
         if( !p_input->b_preparsing && in->i_title <= 0 )
         {




More information about the vlc-devel mailing list