[vlc-commits] avformat mux: don't write trailer if writing header failed
Rafaël Carré
git at videolan.org
Sun Jan 29 03:52:52 CET 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jan 28 21:52:04 2012 -0500| [62229a3b5c564b9d3c6401fe731a70c4504e6f14] | committer: Rafaël Carré
avformat mux: don't write trailer if writing header failed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=62229a3b5c564b9d3c6401fe731a70c4504e6f14
---
modules/demux/avformat/mux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 28cf1df..3885c38 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -173,7 +173,7 @@ void CloseMux( vlc_object_t *p_this )
sout_mux_t *p_mux = (sout_mux_t*)p_this;
sout_mux_sys_t *p_sys = p_mux->p_sys;
- if( !p_sys->b_write_header && av_write_trailer( p_sys->oc ) < 0 )
+ if( !p_sys->b_write_header && !p_sys->b_error && av_write_trailer( p_sys->oc ) < 0 )
{
msg_Err( p_mux, "could not write trailer" );
}
More information about the vlc-commits
mailing list