From: Ilkka Ollakka Date: Sat, 6 Oct 2012 11:04:26 +0000 (+0300) Subject: avformat: if we use dummy access, let avformat write to dst itself, usable for exampl... X-Git-Tag: 2.1.0-git~2629 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c14b0b5e14f98643c71b62aae9f4ce9d85d74192;p=vlc avformat: if we use dummy access, let avformat write to dst itself, usable for example smootstreaming output --- diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c index 9ce5af0d69..bebe5838d5 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 */