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
5d2752c2
Commit
5d2752c2
authored
Dec 28, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DV: use vlc_strerror_c()
parent
ea1648d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
modules/access/dv.c
modules/access/dv.c
+11
-6
No files found.
modules/access/dv.c
View file @
5d2752c2
...
...
@@ -339,7 +339,7 @@ static void* Raw1394EventThread( void *obj )
while
(
(
result
=
poll
(
&
p_sys
->
raw1394_poll
,
1
,
-
1
)
)
<
0
)
{
if
(
errno
!=
EINTR
)
msg_Err
(
p_access
,
"poll error: %
m"
);
msg_Err
(
p_access
,
"poll error: %
s"
,
vlc_strerror_c
(
errno
)
);
}
if
(
result
>
0
&&
(
(
p_sys
->
raw1394_poll
.
revents
&
POLLIN
)
...
...
@@ -451,13 +451,15 @@ static int Raw1394GetNumPorts( access_t *p_access )
/* get a raw1394 handle */
if
(
!
(
handle
=
raw1394_new_handle
()
)
)
{
msg_Err
(
p_access
,
"raw1394 - failed to get handle: %m."
);
msg_Err
(
p_access
,
"raw1394 - failed to get handle: %s"
,
vlc_strerror_c
(
errno
)
);
return
VLC_EGENERIC
;
}
if
(
(
n_ports
=
raw1394_get_port_info
(
handle
,
pinf
,
16
)
)
<
0
)
{
msg_Err
(
p_access
,
"raw1394 - failed to get port info: %m."
);
msg_Err
(
p_access
,
"raw1394 - failed to get port info: %s"
,
vlc_strerror_c
(
errno
)
);
raw1394_destroy_handle
(
handle
);
return
VLC_EGENERIC
;
}
...
...
@@ -476,13 +478,15 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
handle
=
raw1394_new_handle
();
if
(
!
handle
)
{
msg_Err
(
p_access
,
"raw1394 - failed to get handle: %m."
);
msg_Err
(
p_access
,
"raw1394 - failed to get handle: %s"
,
vlc_strerror_c
(
errno
)
);
return
NULL
;
}
if
(
(
n_ports
=
raw1394_get_port_info
(
handle
,
pinf
,
16
)
)
<
0
)
{
msg_Err
(
p_access
,
"raw1394 - failed to get port info: %m."
);
msg_Err
(
p_access
,
"raw1394 - failed to get port info: %s"
,
vlc_strerror_c
(
errno
)
);
raw1394_destroy_handle
(
handle
);
return
NULL
;
}
...
...
@@ -490,7 +494,8 @@ static raw1394handle_t Raw1394Open( access_t *p_access, int port )
/* tell raw1394 which host adapter to use */
if
(
raw1394_set_port
(
handle
,
port
)
<
0
)
{
msg_Err
(
p_access
,
"raw1394 - failed to set set port: %m."
);
msg_Err
(
p_access
,
"raw1394 - failed to set set port: %s"
,
vlc_strerror_c
(
errno
)
);
return
NULL
;
}
...
...
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