Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
66421873
Commit
66421873
authored
Aug 29, 2011
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file-access (+vdr,mtp): give error message also in Fatal dialog
parent
d895ab4f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
modules/access/file.c
modules/access/file.c
+2
-2
modules/access/mtp.c
modules/access/mtp.c
+2
-2
modules/access/vdr.c
modules/access/vdr.c
+2
-2
No files found.
modules/access/file.c
View file @
66421873
...
...
@@ -172,7 +172,7 @@ int Open( vlc_object_t *p_this )
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
_
(
"VLC could not open the file
\"
%s
\"
.
(%m)
"
),
path
);
}
#ifdef WIN32
...
...
@@ -303,7 +303,7 @@ ssize_t FileRead( access_t *p_access, uint8_t *p_buffer, size_t i_len )
default:
msg_Err
(
p_access
,
"failed to read (%m)"
);
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s"
,
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s
(%m)
"
,
_
(
"VLC could not read the file."
));
p_access
->
info
.
b_eof
=
true
;
return
0
;
...
...
modules/access/mtp.c
View file @
66421873
...
...
@@ -218,7 +218,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
default:
msg_Err
(
p_access
,
"read failed (%m)"
);
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s"
,
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s
(%m)
"
,
_
(
"VLC could not read the file."
)
);
p_access
->
info
.
b_eof
=
true
;
return
0
;
...
...
@@ -307,7 +307,7 @@ static int open_file( access_t *p_access, const char *path )
{
msg_Err
(
p_access
,
"cannot open file %s (%m)"
,
path
);
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not open the file
\"
%s
\"
."
),
path
);
_
(
"VLC could not open the file
\"
%s
\"
.
(%m)
"
),
path
);
return
-
1
;
}
...
...
modules/access/vdr.c
View file @
66421873
...
...
@@ -387,7 +387,7 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len )
{
/* abort on read error */
msg_Err
(
p_access
,
"failed to read (%m)"
);
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s"
,
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
"%s
(%m)
"
,
_
(
"VLC could not read the file."
)
);
SwitchFile
(
p_access
,
-
1
);
return
0
;
...
...
@@ -558,7 +558,7 @@ static bool SwitchFile( access_t *p_access, unsigned i_file )
error:
dialog_Fatal
(
p_access
,
_
(
"File reading failed"
),
_
(
"VLC could not"
" open the file
\"
%s
\"
."
),
psz_path
);
" open the file
\"
%s
\"
.
(%m)
"
),
psz_path
);
if
(
p_sys
->
fd
!=
-
1
)
{
close
(
p_sys
->
fd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment