[vlc-devel] commit: Do not ask the user if we should build the avi index when the demuxer has been killed . (Laurent Aimar )
git version control
git at videolan.org
Fri Jun 19 01:09:25 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jun 19 00:51:05 2009 +0200| [8d74508733922ae17b17484e8e92e84b040bf592] | committer: Laurent Aimar
Do not ask the user if we should build the avi index when the demuxer has been killed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d74508733922ae17b17484e8e92e84b040bf592
---
modules/demux/avi/avi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 8874d4c..4dbca4f 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -677,6 +677,9 @@ aviindex:
(mtime_t)p_avih->i_microsecperframe /
(mtime_t)1000000 )
{
+ if( !vlc_object_alive( p_demux) )
+ goto error;
+
msg_Warn( p_demux, "broken or missing index, 'seek' will be "
"approximative or will exhibit strange behavior" );
if( i_do_index == 0 && !b_index )
More information about the vlc-devel
mailing list