]> git.sesse.net Git - vlc/commitdiff
* rtp, display: update p_sout->i_out_pace_nocontrol.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 6 Mar 2004 16:38:29 +0000 (16:38 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 6 Mar 2004 16:38:29 +0000 (16:38 +0000)
modules/stream_out/display.c
modules/stream_out/rtp.c

index f69b9c3c096dd33aed0ea885a056d417369f6706..76838cc8cc429338dfe98a3c3f030eee9da73e30 100644 (file)
@@ -2,7 +2,7 @@
  * display.c: display stream output module
  *****************************************************************************
  * Copyright (C) 2001, 2002 VideoLAN
- * $Id: display.c,v 1.12 2004/01/25 14:34:25 gbazin Exp $
+ * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -102,6 +102,9 @@ static int Open( vlc_object_t *p_this )
 
     p_stream->p_sys     = p_sys;
 
+    /* update p_sout->i_out_pace_nocontrol */
+    p_stream->p_sout->i_out_pace_nocontrol++;
+
     return VLC_SUCCESS;
 }
 
@@ -113,6 +116,9 @@ static void Close( vlc_object_t * p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
+    /* update p_sout->i_out_pace_nocontrol */
+    p_stream->p_sout->i_out_pace_nocontrol--;
+
     vlc_object_release( p_sys->p_input );
 
     free( p_sys );
index 8e7dddb527f286a6f303fc2972cc33cf4821f336..3bfbfac00e8b372e466697f7a6a026251fccd7bb 100644 (file)
@@ -2,7 +2,7 @@
  * rtp.c: rtp stream output module
  *****************************************************************************
  * Copyright (C) 2003-2004 VideoLAN
- * $Id: rtp.c,v 1.13 2004/03/03 13:27:25 fenrir Exp $
+ * $Id$
  *
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
@@ -338,6 +338,9 @@ static int Open( vlc_object_t *p_this )
         vlc_UrlClean( &url );
     }
 
+    /* update p_sout->i_out_pace_nocontrol */
+    p_stream->p_sout->i_out_pace_nocontrol++;
+
     return VLC_SUCCESS;
 }
 
@@ -349,6 +352,9 @@ static void Close( vlc_object_t * p_this )
     sout_stream_t     *p_stream = (sout_stream_t*)p_this;
     sout_stream_sys_t *p_sys = p_stream->p_sys;
 
+    /* update p_sout->i_out_pace_nocontrol */
+    p_stream->p_sout->i_out_pace_nocontrol--;
+
     if( p_sys->p_mux )
     {
         sout_MuxDelete( p_sys->p_mux );