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
cd3efe2d
Commit
cd3efe2d
authored
Nov 26, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: asf: seek seekable
parent
991b4067
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+18
-0
No files found.
modules/demux/asf/asf.c
View file @
cd3efe2d
...
@@ -314,6 +314,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -314,6 +314,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_SET_TIME
:
case
DEMUX_SET_TIME
:
if
(
p_sys
->
p_fp
&&
!
(
p_sys
->
p_fp
->
i_flags
&
ASF_FILE_PROPERTIES_SEEKABLE
)
)
return
VLC_EGENERIC
;
SeekPrepare
(
p_demux
);
SeekPrepare
(
p_demux
);
if
(
p_sys
->
b_index
&&
p_sys
->
i_length
>
0
)
if
(
p_sys
->
b_index
&&
p_sys
->
i_length
>
0
)
...
@@ -342,6 +346,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -342,6 +346,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
i_query
,
args
);
i_query
,
args
);
case
DEMUX_SET_POSITION
:
case
DEMUX_SET_POSITION
:
if
(
p_sys
->
p_fp
&&
!
(
p_sys
->
p_fp
->
i_flags
&
ASF_FILE_PROPERTIES_SEEKABLE
)
)
return
VLC_EGENERIC
;
SeekPrepare
(
p_demux
);
SeekPrepare
(
p_demux
);
if
(
p_sys
->
b_index
&&
p_sys
->
i_length
>
0
)
if
(
p_sys
->
b_index
&&
p_sys
->
i_length
>
0
)
...
@@ -361,6 +369,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -361,6 +369,16 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
vlc_meta_Merge
(
p_meta
,
p_sys
->
meta
);
vlc_meta_Merge
(
p_meta
,
p_sys
->
meta
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
DEMUX_CAN_SEEK
:
if
(
p_sys
->
p_fp
&&
!
(
p_sys
->
p_fp
->
i_flags
&
ASF_FILE_PROPERTIES_SEEKABLE
)
)
{
bool
*
pb_bool
=
(
bool
*
)
va_arg
(
args
,
bool
*
);
*
pb_bool
=
false
;
return
VLC_SUCCESS
;
}
// ft
default:
default:
return
demux_vaControlHelper
(
p_demux
->
s
,
p_sys
->
i_data_begin
,
return
demux_vaControlHelper
(
p_demux
->
s
,
p_sys
->
i_data_begin
,
p_sys
->
i_data_end
,
p_sys
->
i_bitrate
,
p_sys
->
i_data_end
,
p_sys
->
i_bitrate
,
...
...
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