Commit f5930fff authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Use dialog_Question

parent 97ce64ff
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <vlc_demux.h> #include <vlc_demux.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_dialog.h>
#include <vlc_meta.h> #include <vlc_meta.h>
#include <vlc_codecs.h> #include <vlc_codecs.h>
...@@ -675,20 +676,17 @@ aviindex: ...@@ -675,20 +676,17 @@ aviindex:
b_index = true; b_index = true;
goto aviindex; goto aviindex;
} }
int i_create; switch( dialog_Question( p_demux, _("AVI Index") ,
i_create = intf_UserYesNo( p_demux, _("AVI Index") , _( "This AVI file is broken. Seeking will not work correctly.\n"
_( "This AVI file is broken. Seeking will not " "Do you want to try to fix it?\n\n"
"work correctly.\nDo you want to " "This might take a long time." ),
"try to repair it?\n\nThis might take a long time." ), _( "Repair" ), _( "Don't repair" ), _( "Cancel") ) )
_( "Repair" ), _( "Don't repair" ), _( "Cancel") );
if( i_create == DIALOG_OK_YES )
{ {
case 1:
b_index = true; b_index = true;
msg_Dbg( p_demux, "Fixing AVI index" ); msg_Dbg( p_demux, "Fixing AVI index" );
goto aviindex; goto aviindex;
} case 3:
else if( i_create == DIALOG_CANCELLED )
{
/* Kill input */ /* Kill input */
vlc_object_kill( p_demux->p_parent ); vlc_object_kill( p_demux->p_parent );
goto error; goto error;
......
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