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
43e1d0d3
Commit
43e1d0d3
authored
Jun 24, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mkv: when seeking, by default, try to reach the file position not the
time (seek seems better).
parent
a00addff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+6
-7
No files found.
modules/demux/mkv.cpp
View file @
43e1d0d3
...
...
@@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mkv.cpp,v 1.
9 2003/06/24 18:42:50
fenrir Exp $
* $Id: mkv.cpp,v 1.
10 2003/06/24 19:35:46
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -87,12 +87,11 @@ static int Demux ( input_thread_t * );
* Module descriptor
*****************************************************************************/
vlc_module_begin
();
#if 0
add_category_hint
(
N_
(
"mkv-demuxer"
),
NULL
,
VLC_TRUE
);
add_bool( "mkv-
index", 0
, NULL,
N_("
Create index if no cues found
"),
N_("
Create index if no cues found
"), VLC_TRUE );
#endif
add_bool
(
"mkv-
seek-percent"
,
1
,
NULL
,
N_
(
"
Seek based on percent not time
"
),
N_
(
"
Seek based on percent not time
"
),
VLC_TRUE
);
set_description
(
_
(
"mka/mkv stream demuxer"
)
);
set_capability
(
"demux"
,
50
);
set_callbacks
(
Activate
,
Deactivate
);
...
...
@@ -1535,7 +1534,7 @@ static void Seek( input_thread_t *p_input, mtime_t i_date, int i_percent)
p_sys
->
cluster
=
NULL
;
/* seek without index or without date */
if
(
!
p_sys
->
b_cues
||
i_date
<
0
)
if
(
config_GetInt
(
p_input
,
"mkv-seek-percent"
)
||
!
p_sys
->
b_cues
||
i_date
<
0
)
{
int64_t
i_pos
=
i_percent
*
p_input
->
stream
.
p_selected_area
->
i_size
/
100
;
...
...
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