[vlc-commits] avformat: if we use dummy access, let avformat write to dst itself, usable for example smootstreaming output

Ilkka Ollakka git at videolan.org
Mon Oct 8 16:56:13 CEST 2012


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sat Oct  6 14:04:26 2012 +0300| [c14b0b5e14f98643c71b62aae9f4ce9d85d74192] | committer: Ilkka Ollakka

avformat: if we use dummy access, let avformat write to dst itself, usable for example smootstreaming output

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

 modules/demux/avformat/mux.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 9ce5af0..bebe583 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -133,6 +133,9 @@ int OpenMux( vlc_object_t *p_this )
 
     p_sys->oc = avformat_alloc_context();
     p_sys->oc->oformat = file_oformat;
+    /* If we use dummy access, let avformat write output */
+    if( !strcmp( p_mux->p_access->psz_access, "dummy") )
+        strcpy( p_sys->oc->filename, p_mux->p_access->psz_path );
 
     /* Create I/O wrapper */
     p_sys->io_buffer_size = 32768;  /* FIXME */



More information about the vlc-commits mailing list