AVI: abort if user gave up while rebuilding the index (refs: #2872)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Aug 2009 17:12:28 +0000 (20:12 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 2 Aug 2009 17:12:56 +0000 (20:12 +0300)
Previously, the core would fallback to other demux plugins which was
inefficient and error-prone.

modules/demux/avi/avi.c

index 2e32795..a473bf4 100644 (file)
@@ -765,7 +765,7 @@ error:
     }
     AVI_ChunkFreeRoot( p_demux->s, &p_sys->ck_root );
     free( p_sys );
-    return VLC_EGENERIC;
+    return vlc_object_alive( p_demux ) ? VLC_EGENERIC : VLC_ETIMEOUT;
 }
 
 /*****************************************************************************