Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
58dd540a
Commit
58dd540a
authored
Feb 17, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: fix the update of the timecode and position bar after seeking
parent
beb1ae86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+14
-13
No files found.
modules/demux/mkv.cpp
View file @
58dd540a
...
...
@@ -1087,7 +1087,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_POSITION
:
pf
=
(
double
*
)
va_arg
(
args
,
double
*
);
*
pf
=
(
double
)
p_sys
->
in
->
getFilePointer
()
/
(
double
)
stream_Size
(
p_demux
->
s
);
if
(
p_sys
->
i_pts
<
p_sys
->
i_start_pts
)
*
pf
=
(
double
)
p_sys
->
i_start_pts
/
(
1000.0
*
p_sys
->
f_duration
);
else
*
pf
=
(
double
)
p_sys
->
i_pts
/
(
1000.0
*
p_sys
->
f_duration
);
return
VLC_SUCCESS
;
case
DEMUX_SET_POSITION
:
...
...
@@ -1097,18 +1100,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_GET_TIME
:
pi64
=
(
int64_t
*
)
va_arg
(
args
,
int64_t
*
);
if
(
p_sys
->
f_duration
>
0.0
)
{
mtime_t
i_duration
=
(
mtime_t
)(
p_sys
->
f_duration
/
1000
);
/* FIXME */
*
pi64
=
(
mtime_t
)
1000000
*
(
mtime_t
)
i_duration
*
(
mtime_t
)
p_sys
->
in
->
getFilePointer
()
/
(
mtime_t
)
stream_Size
(
p_demux
->
s
);
return
VLC_SUCCESS
;
}
return
VLC_EGENERIC
;
if
(
p_sys
->
i_pts
<
p_sys
->
i_start_pts
)
*
pi64
=
p_sys
->
i_start_pts
;
else
*
pi64
=
p_sys
->
i_pts
;
return
VLC_SUCCESS
;
case
DEMUX_GET_TITLE_INFO
:
if
(
p_sys
->
title
&&
p_sys
->
title
->
i_seekpoint
>
0
)
...
...
@@ -1355,6 +1351,11 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
}
#endif
/* if (p_sys->i_start_pts > i_pts)
{
p_block->i_dts = p_block->i_pts = -1;
}
else*/
if
(
tk
.
fmt
.
i_cat
!=
VIDEO_ES
)
{
p_block
->
i_dts
=
p_block
->
i_pts
=
i_pts
;
...
...
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