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
df3be99a
Commit
df3be99a
authored
Jul 24, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attachment: implement ACCESS_GET_SIZE
parent
09523e12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
modules/access/attachment.c
modules/access/attachment.c
+12
-12
No files found.
modules/access/attachment.c
View file @
df3be99a
...
...
@@ -122,28 +122,28 @@ static int Seek(access_t *access, uint64_t position)
/* */
static
int
Control
(
access_t
*
access
,
int
query
,
va_list
args
)
{
VLC_UNUSED
(
access
);
input_attachment_t
*
a
=
(
void
*
)
access
->
p_sys
;
switch
(
query
)
{
/* */
case
ACCESS_CAN_SEEK
:
case
ACCESS_CAN_FASTSEEK
:
case
ACCESS_CAN_PAUSE
:
case
ACCESS_CAN_CONTROL_PACE
:
{
bool
*
b
=
va_arg
(
args
,
bool
*
);
*
b
=
true
;
return
VLC_SUCCESS
;
}
case
ACCESS_GET_PTS_DELAY
:
{
int64_t
*
d
=
va_arg
(
args
,
int64_t
*
);
*
d
=
DEFAULT_PTS_DELAY
;
return
VLC_SUCCESS
;
}
case
ACCESS_CAN_CONTROL_PACE
:
*
va_arg
(
args
,
bool
*
)
=
true
;
break
;
case
ACCESS_GET_SIZE
:
*
va_arg
(
args
,
uint64_t
*
)
=
a
->
i_data
;
break
;
case
ACCESS_GET_PTS_DELAY
:
*
va_arg
(
args
,
int64_t
*
)
=
DEFAULT_PTS_DELAY
;
break
;
case
ACCESS_SET_PAUSE_STATE
:
return
VLC_SUCCESS
;
default:
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
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