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
43424ac2
Commit
43424ac2
authored
Dec 14, 2011
by
Denis Charmet
Committed by
Jean-Baptiste Kempf
Dec 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: Do not list chapters and titles when there is only one of them
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ce01d1fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
modules/demux/mkv/virtual_segment.cpp
modules/demux/mkv/virtual_segment.cpp
+6
-7
No files found.
modules/demux/mkv/virtual_segment.cpp
View file @
43424ac2
...
...
@@ -531,15 +531,13 @@ int virtual_edition_c::PublishChapters( input_title_t & title, int & i_user_chap
{
/* HACK for now don't expose edition as a seekpoint if its start time is the same than it's first chapter */
if
(
chapters
.
size
()
>
0
&&
chapters
[
0
]
->
i_virtual_start_time
)
if
(
chapters
.
size
()
>
0
&&
chapters
[
0
]
->
i_virtual_start_time
&&
p_edition
)
{
seekpoint_t
*
sk
=
vlc_seekpoint_New
();
sk
->
i_time_offset
=
0
;
if
(
p_edition
)
sk
->
psz_name
=
strdup
(
p_edition
->
psz_name
.
c_str
()
);
else
sk
->
psz_name
=
strdup
(
"Dummy edition"
);
sk
->
psz_name
=
strdup
(
p_edition
->
psz_name
.
c_str
()
);
title
.
i_seekpoint
++
;
title
.
seekpoint
=
(
seekpoint_t
**
)
xrealloc
(
title
.
seekpoint
,
...
...
@@ -551,8 +549,9 @@ int virtual_edition_c::PublishChapters( input_title_t & title, int & i_user_chap
i_seekpoint_num
=
i_user_chapters
;
}
for
(
size_t
i
=
0
;
i
<
chapters
.
size
();
i
++
)
chapters
[
i
]
->
PublishChapters
(
title
,
i_user_chapters
,
i_level
);
if
(
chapters
.
size
()
>
1
)
for
(
size_t
i
=
0
;
i
<
chapters
.
size
();
i
++
)
chapters
[
i
]
->
PublishChapters
(
title
,
i_user_chapters
,
i_level
);
return
i_user_chapters
;
}
...
...
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