]> git.sesse.net Git - vlc/commitdiff
* modules/access_out/file.c: added "stream" shortcut for when one doesn't want pace...
authorGildas Bazin <gbazin@videolan.org>
Wed, 7 Apr 2004 22:49:13 +0000 (22:49 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 7 Apr 2004 22:49:13 +0000 (22:49 +0000)
modules/access_output/file.c

index b26db480e7abebf5328154fc396a31de70fd56ec..8f8262b4b4eacc9ea421a19f211bc4a0ee36d37c 100644 (file)
@@ -62,6 +62,7 @@ vlc_module_begin();
     set_description( _("File stream ouput") );
     set_capability( "sout access", 50 );
     add_shortcut( "file" );
+    add_shortcut( "stream" );
     set_callbacks( Open, Close );
 vlc_module_end();
 
@@ -125,6 +126,11 @@ static int Open( vlc_object_t *p_this )
     p_access->pf_seek  = Seek;
 
     msg_Dbg( p_access, "file access output opened (`%s')", p_access->psz_name );
+
+    /* Update pace control flag */
+    if( p_access->psz_access && !strcmp( p_access->psz_access, "stream" ) )
+        p_access->p_sout->i_out_pace_nocontrol++;
+
     return VLC_SUCCESS;
 }
 
@@ -144,6 +150,10 @@ static void Close( vlc_object_t * p_this )
     }
     free( p_access->p_sys );
 
+    /* Update pace control flag */
+    if( p_access->psz_access && !strcmp( p_access->psz_access, "stream" ) )
+        p_access->p_sout->i_out_pace_nocontrol--;
+
     msg_Dbg( p_access, "file access output closed" );
 }