Commit 6f73a8f3 authored by Laurent Aimar's avatar Laurent Aimar

* avi: more check on b_die (when building index).

parent 42886fbe
......@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.73 2003/11/21 15:51:32 fenrir Exp $
* $Id: avi.c,v 1.74 2003/11/22 15:10:38 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
......@@ -1235,6 +1235,10 @@ static int AVI_StreamChunkFind( input_thread_t *p_input,
for( ;; )
{
if( p_input->b_die )
{
return VLC_EGENERIC;
}
if( AVI_PacketGetHeader( p_input, &avi_pk ) )
{
......@@ -1953,6 +1957,11 @@ static void AVI_IndexCreate( input_thread_t *p_input )
{
avi_packet_t pk;
if( p_input->b_die )
{
return;
}
if( AVI_PacketGetHeader( p_input, &pk ) )
{
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment