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
b4f08e46
Commit
b4f08e46
authored
Feb 27, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
df3997de
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+11
-9
No files found.
modules/demux/asf/asf.c
View file @
b4f08e46
...
...
@@ -225,6 +225,14 @@ static void Close( vlc_object_t * p_this )
/*****************************************************************************
* SeekIndex: goto to i_date or i_percent
*****************************************************************************/
static
int
SeekPercent
(
demux_t
*
p_demux
,
int
i_query
,
va_list
args
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
return
demux_vaControlHelper
(
p_demux
->
s
,
p_sys
->
i_data_begin
,
p_sys
->
i_data_end
,
p_sys
->
i_bitrate
,
p_sys
->
p_fp
->
i_min_data_packet_size
,
i_query
,
args
);
}
static
int
SeekIndex
(
demux_t
*
p_demux
,
mtime_t
i_date
,
float
f_pos
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
...
...
@@ -232,7 +240,7 @@ static int SeekIndex( demux_t *p_demux, mtime_t i_date, float f_pos )
int64_t
i_pos
;
msg_Dbg
(
p_demux
,
"seek with index: %i seconds, position %f"
,
(
int
)(
i_date
/
1000000
)
,
f_pos
);
i_date
>=
0
?
(
int
)(
i_date
/
1000000
)
:
-
1
,
f_pos
);
p_index
=
ASF_FindObject
(
p_sys
->
p_root
,
&
asf_object_index_guid
,
0
);
...
...
@@ -296,10 +304,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
else
{
return
demux_vaControlHelper
(
p_demux
->
s
,
p_sys
->
i_data_begin
,
p_sys
->
i_data_end
,
p_sys
->
i_bitrate
,
p_sys
->
p_fp
->
i_min_data_packet_size
,
i_query
,
args
);
return
SeekPercent
(
p_demux
,
i_query
,
args
);
}
case
DEMUX_GET_POSITION
:
...
...
@@ -325,10 +330,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
else
{
return
demux_vaControlHelper
(
p_demux
->
s
,
p_sys
->
i_data_begin
,
p_sys
->
i_data_end
,
p_sys
->
i_bitrate
,
p_sys
->
p_fp
->
i_min_data_packet_size
,
i_query
,
args
);
return
SeekPercent
(
p_demux
,
i_query
,
args
);
}
case
DEMUX_GET_META
:
...
...
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