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
21b9023e
Commit
21b9023e
authored
Dec 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Matroska demux: use var_Inherit
parent
e83bd71d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/demux/mkv/Ebml_parser.cpp
modules/demux/mkv/Ebml_parser.cpp
+2
-2
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+1
-1
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+2
-2
No files found.
modules/demux/mkv/Ebml_parser.cpp
View file @
21b9023e
...
...
@@ -43,7 +43,7 @@ EbmlParser::EbmlParser( EbmlStream *es, EbmlElement *el_start, demux_t *p_demux
mi_level
=
1
;
mi_user_level
=
1
;
mb_keep
=
false
;
mb_dummy
=
config_GetInt
(
p_demux
,
"mkv-use-dummy"
);
mb_dummy
=
var_InheritInteger
(
p_demux
,
"mkv-use-dummy"
);
}
EbmlParser
::~
EbmlParser
(
void
)
...
...
@@ -127,7 +127,7 @@ void EbmlParser::Reset( demux_t *p_demux )
mi_user_level
=
mi_level
=
1
;
// a little faster and cleaner
m_es
->
I_O
().
setFilePointer
(
static_cast
<
KaxSegment
*>
(
m_el
[
0
])
->
GetGlobalPosition
(
0
)
);
mb_dummy
=
config_GetInt
(
p_demux
,
"mkv-use-dummy"
);
mb_dummy
=
var_InheritInteger
(
p_demux
,
"mkv-use-dummy"
);
}
...
...
modules/demux/mkv/matroska_segment_parse.cpp
View file @
21b9023e
...
...
@@ -1033,7 +1033,7 @@ void matroska_segment_c::ParseChapters( KaxChapters *chapters )
}
else
if
(
MKV_IS_ID
(
l
,
KaxEditionFlagOrdered
)
)
{
p_edition
->
b_ordered
=
config_GetInt
(
&
sys
.
demuxer
,
"mkv-use-ordered-chapters"
)
?
(
uint8
(
*
static_cast
<
KaxEditionFlagOrdered
*>
(
l
))
!=
0
)
:
0
;
p_edition
->
b_ordered
=
var_InheritInteger
(
&
sys
.
demuxer
,
"mkv-use-ordered-chapters"
)
?
(
uint8
(
*
static_cast
<
KaxEditionFlagOrdered
*>
(
l
))
!=
0
)
:
0
;
}
else
if
(
MKV_IS_ID
(
l
,
KaxEditionFlagDefault
)
)
{
...
...
modules/demux/mkv/mkv.cpp
View file @
21b9023e
...
...
@@ -137,7 +137,7 @@ static int Open( vlc_object_t * p_this )
goto
error
;
}
if
(
config_GetInt
(
p_demux
,
"mkv-preload-local-dir"
))
if
(
var_InheritInteger
(
p_demux
,
"mkv-preload-local-dir"
))
{
/* get the files from the same dir from the same family (based on p_demux->psz_path) */
if
(
p_demux
->
psz_path
[
0
]
!=
'\0'
&&
!
strcmp
(
p_demux
->
psz_access
,
""
))
...
...
@@ -419,7 +419,7 @@ static void Seek( demux_t *p_demux, mtime_t i_date, double f_percent, chapter_it
}
/* seek without index or without date */
if
(
f_percent
>=
0
&&
(
config_GetInt
(
p_demux
,
"mkv-seek-percent"
)
||
!
p_segment
->
b_cues
||
i_date
<
0
))
if
(
f_percent
>=
0
&&
(
var_InheritInteger
(
p_demux
,
"mkv-seek-percent"
)
||
!
p_segment
->
b_cues
||
i_date
<
0
))
{
if
(
p_sys
->
f_duration
>=
0
&&
p_segment
->
b_cues
)
{
...
...
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