Commit 8aeb66fe authored by Thomas Guillem's avatar Thomas Guillem

access: file: don't display error dialogs

A general error dialog is already displayed by the core in input.c (see "Your
input can't be opened") in case of error.
parent ba3c32e0
......@@ -57,7 +57,6 @@
#include "fs.h"
#include <vlc_input.h>
#include <vlc_access.h>
#include <vlc_dialog.h>
#ifdef _WIN32
# include <vlc_charset.h>
#endif
......@@ -174,11 +173,6 @@ int FileOpen( vlc_object_t *p_this )
p_access->psz_filepath ? p_access->psz_filepath
: p_access->psz_location,
vlc_strerror_c(errno));
vlc_dialog_display_error (p_access, _("File reading failed"),
_("VLC could not open the file \"%s\" (%s)."),
p_access->psz_filepath ? p_access->psz_filepath
: p_access->psz_location,
vlc_strerror(errno));
return VLC_EGENERIC;
}
......@@ -287,9 +281,6 @@ static ssize_t Read (stream_t *p_access, void *p_buffer, size_t i_len)
}
msg_Err (p_access, "read error: %s", vlc_strerror_c(errno));
vlc_dialog_display_error (p_access, _("File reading failed"),
_("VLC could not read the file (%s)."),
vlc_strerror(errno));
val = 0;
}
......
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