Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6dc58535
Commit
6dc58535
authored
Jul 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: code factor for STREAM_GET_SIZE
parent
e2ac0530
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/input/stream_access.c
src/input/stream_access.c
+2
-7
No files found.
src/input/stream_access.c
View file @
6dc58535
...
@@ -389,6 +389,7 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
...
@@ -389,6 +389,7 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
static_control_match
(
CAN_FASTSEEK
);
static_control_match
(
CAN_FASTSEEK
);
static_control_match
(
CAN_PAUSE
);
static_control_match
(
CAN_PAUSE
);
static_control_match
(
CAN_CONTROL_PACE
);
static_control_match
(
CAN_CONTROL_PACE
);
static_control_match
(
GET_SIZE
);
static_control_match
(
GET_PTS_DELAY
);
static_control_match
(
GET_PTS_DELAY
);
static_control_match
(
GET_TITLE_INFO
);
static_control_match
(
GET_TITLE_INFO
);
static_control_match
(
GET_TITLE
);
static_control_match
(
GET_TITLE
);
...
@@ -409,6 +410,7 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
...
@@ -409,6 +410,7 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
case
STREAM_CAN_FASTSEEK
:
case
STREAM_CAN_FASTSEEK
:
case
STREAM_CAN_PAUSE
:
case
STREAM_CAN_PAUSE
:
case
STREAM_CAN_CONTROL_PACE
:
case
STREAM_CAN_CONTROL_PACE
:
case
STREAM_GET_SIZE
:
case
STREAM_GET_PTS_DELAY
:
case
STREAM_GET_PTS_DELAY
:
case
STREAM_GET_TITLE_INFO
:
case
STREAM_GET_TITLE_INFO
:
case
STREAM_GET_TITLE
:
case
STREAM_GET_TITLE
:
...
@@ -422,13 +424,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
...
@@ -422,13 +424,6 @@ static int AStreamControl( stream_t *s, int i_query, va_list args )
case
STREAM_GET_PRIVATE_ID_STATE
:
case
STREAM_GET_PRIVATE_ID_STATE
:
return
access_vaControl
(
p_access
,
i_query
,
args
);
return
access_vaControl
(
p_access
,
i_query
,
args
);
case
STREAM_GET_SIZE
:
{
uint64_t
*
pi_64
=
va_arg
(
args
,
uint64_t
*
);
*
pi_64
=
access_GetSize
(
p_access
);
break
;
}
case
STREAM_GET_POSITION
:
case
STREAM_GET_POSITION
:
*
va_arg
(
args
,
uint64_t
*
)
=
p_sys
->
i_pos
;
*
va_arg
(
args
,
uint64_t
*
)
=
p_sys
->
i_pos
;
break
;
break
;
...
...
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