]> git.sesse.net Git - vlc/blobdiff - modules/demux/avi/avi.c
Do not ask the user if we should build the avi index when the demuxer has been killed.
[vlc] / modules / demux / avi / avi.c
index 8874d4c78179213d7003ab21d5ab32f07861ec36..4dbca4fdcbbf604bfe94b5cef047f6774dee7afb 100644 (file)
@@ -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 )