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
8f556b71
Commit
8f556b71
authored
Jul 14, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shore up code and remove early returns.
parent
456bc399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
21 deletions
+8
-21
modules/access/dv.c
modules/access/dv.c
+8
-21
No files found.
modules/access/dv.c
View file @
8f556b71
...
...
@@ -303,33 +303,27 @@ static void Close( vlc_object_t *p_this )
*****************************************************************************/
static
int
Control
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
bool
*
pb_bool
;
int64_t
*
pi_64
;
switch
(
i_query
)
{
/* */
case
ACCESS_CAN_PAUSE
:
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
true
;
*
va_arg
(
args
,
bool
*
)
=
true
;
break
;
case
ACCESS_CAN_SEEK
:
case
ACCESS_CAN_FASTSEEK
:
case
ACCESS_CAN_CONTROL_PACE
:
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
false
;
*
va_arg
(
args
,
bool
*
)
=
false
;
break
;
case
ACCESS_GET_PTS_DELAY
:
pi_64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
*
pi_64
=
(
int64_t
)
var_GetInteger
(
p_access
,
"dv-caching"
)
*
1000
;
*
va_arg
(
args
,
int64_t
*
)
=
(
int64_t
)
var_GetInteger
(
p_access
,
"dv-caching"
)
*
1000
;
break
;
/* */
case
ACCESS_SET_PAUSE_STATE
:
AVCPause
(
p_access
,
p_sys
->
i_node
);
AVCPause
(
p_access
,
p_
access
->
p_
sys
->
i_node
);
break
;
case
ACCESS_GET_TITLE_INFO
:
...
...
@@ -642,10 +636,8 @@ static int AVCPlay( access_t *p_access, int phyID )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
msg_Dbg
(
p_access
,
"send play command over Digital Video control channel"
);
if
(
!
p_sys
->
p_avc1394
)
return
0
;
if
(
phyID
>=
0
)
if
(
p
_sys
->
p_avc1394
&&
p
hyID
>=
0
)
{
if
(
!
avc1394_vcr_is_recording
(
p_sys
->
p_avc1394
,
phyID
)
&&
avc1394_vcr_is_playing
(
p_sys
->
p_avc1394
,
phyID
)
!=
AVC1394_VCR_OPERAND_PLAY_FORWARD
)
...
...
@@ -658,10 +650,7 @@ static int AVCPause( access_t *p_access, int phyID )
{
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
if
(
!
p_sys
->
p_avc1394
)
return
0
;
if
(
phyID
>=
0
)
if
(
p_sys
->
p_avc1394
&&
phyID
>=
0
)
{
if
(
!
avc1394_vcr_is_recording
(
p_sys
->
p_avc1394
,
phyID
)
&&
(
avc1394_vcr_is_playing
(
p_sys
->
p_avc1394
,
phyID
)
!=
AVC1394_VCR_OPERAND_PLAY_FORWARD_PAUSE
)
)
...
...
@@ -676,10 +665,8 @@ static int AVCStop( access_t *p_access, int phyID )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
msg_Dbg
(
p_access
,
"closing Digital Video control channel"
);
if
(
!
p_sys
->
p_avc1394
)
return
0
;
if
(
phyID
>=
0
)
if
(
p
_sys
->
p_avc1394
&&
p
hyID
>=
0
)
avc1394_vcr_stop
(
p_sys
->
p_avc1394
,
phyID
);
return
0
;
...
...
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