Commit ec79cd93 authored by Laurent Aimar's avatar Laurent Aimar

Allowed user to cancel avi index creation.

parent ec3c7d65
...@@ -2396,9 +2396,12 @@ static void AVI_IndexCreate( demux_t *p_demux ) ...@@ -2396,9 +2396,12 @@ static void AVI_IndexCreate( demux_t *p_demux )
if( !vlc_object_alive (p_demux) ) if( !vlc_object_alive (p_demux) )
break; break;
/* Don't update dialog too often */ /* Don't update/check dialog too often */
if( i_dialog_id > 0 && mdate() - i_dialog_update > 100000 ) if( i_dialog_id > 0 && mdate() - i_dialog_update > 100000 )
{ {
if( intf_ProgressIsCancelled( p_demux, i_dialog_id ) )
break;
int64_t i_pos = stream_Tell( p_demux->s )* 100 / int64_t i_pos = stream_Tell( p_demux->s )* 100 /
stream_Size( p_demux->s ); stream_Size( p_demux->s );
float f_pos = (float)i_pos; float f_pos = (float)i_pos;
......
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