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
318b67aa
Commit
318b67aa
authored
Jan 26, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: kill warnings.
parent
20fcfd58
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
36 deletions
+29
-36
modules/demux/mkv/demux.cpp
modules/demux/mkv/demux.cpp
+0
-2
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+0
-4
modules/demux/mkv/matroska_segment.hpp
modules/demux/mkv/matroska_segment.hpp
+3
-26
modules/demux/mkv/matroska_segment_parse.cpp
modules/demux/mkv/matroska_segment_parse.cpp
+25
-2
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+1
-2
No files found.
modules/demux/mkv/demux.cpp
View file @
318b67aa
...
...
@@ -284,8 +284,6 @@ void * demux_sys_t::EventThread( vlc_object_t *p_this )
/* KEY part */
if
(
p_ev
->
i_key_action
)
{
int
i
;
msg_Dbg
(
p_ev
->
p_demux
,
"Handle Key Event"
);
vlc_mutex_lock
(
&
p_ev
->
lock
);
...
...
modules/demux/mkv/matroska_segment.cpp
View file @
318b67aa
...
...
@@ -87,7 +87,6 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
{
EbmlParser
*
ep
;
EbmlElement
*
el
;
size_t
i
,
j
;
if
(
b_cues
)
{
...
...
@@ -187,7 +186,6 @@ void matroska_segment_c::LoadTags( KaxTags *tags )
{
EbmlParser
*
ep
;
EbmlElement
*
el
;
size_t
i
,
j
;
/* Master elements */
ep
=
new
EbmlParser
(
&
es
,
tags
,
&
sys
.
demuxer
);
...
...
@@ -597,8 +595,6 @@ int matroska_segment_c::BlockFindTrackIndex( size_t *pi_track,
const
KaxBlock
*
p_block
,
const
KaxSimpleBlock
*
p_simpleblock
)
{
size_t
i_track
;
unsigned
int
i
;
bool
b
;
for
(
i_track
=
0
;
i_track
<
tracks
.
size
();
i_track
++
)
{
...
...
modules/demux/mkv/matroska_segment.hpp
View file @
318b67aa
...
...
@@ -42,14 +42,14 @@ public:
,
i_timescale
(
MKVD_TIMECODESCALE
)
,
i_duration
(
-
1
)
,
i_start_time
(
0
)
,
i_seekhead_count
(
0
)
,
i_seekhead_position
(
-
1
)
,
i_cues_position
(
-
1
)
,
i_tracks_position
(
-
1
)
,
i_info_position
(
-
1
)
,
i_chapters_position
(
-
1
)
,
i_tags_position
(
-
1
)
,
i_tracks_position
(
-
1
)
,
i_attachments_position
(
-
1
)
,
i_seekhead_position
(
-
1
)
,
i_seekhead_count
(
0
)
,
cluster
(
NULL
)
,
i_block_pos
(
0
)
,
i_cluster_pos
(
0
)
...
...
@@ -159,28 +159,5 @@ public:
static
bool
CompareSegmentUIDs
(
const
matroska_segment_c
*
item_a
,
const
matroska_segment_c
*
item_b
);
};
/**
* Helper function to print the mkv parse tree
*/
static
void
MkvTree
(
demux_t
&
demuxer
,
int
i_level
,
const
char
*
psz_format
,
...
)
{
va_list
args
;
if
(
i_level
>
9
)
{
msg_Err
(
&
demuxer
,
"too deep tree"
);
return
;
}
va_start
(
args
,
psz_format
);
static
const
char
psz_foo
[]
=
"| | | | | | | | | |"
;
char
*
psz_foo2
=
(
char
*
)
malloc
(
i_level
*
4
+
3
+
strlen
(
psz_format
)
);
strncpy
(
psz_foo2
,
psz_foo
,
4
*
i_level
);
psz_foo2
[
4
*
i_level
]
=
'+'
;
psz_foo2
[
4
*
i_level
+
1
]
=
' '
;
strcpy
(
&
psz_foo2
[
4
*
i_level
+
2
],
psz_format
);
__msg_GenericVa
(
VLC_OBJECT
(
&
demuxer
),
VLC_MSG_DBG
,
"mkv"
,
psz_foo2
,
args
);
free
(
psz_foo2
);
va_end
(
args
);
}
#endif
modules/demux/mkv/matroska_segment_parse.cpp
View file @
318b67aa
...
...
@@ -35,8 +35,6 @@ void matroska_segment_c::ParseSeekHead( KaxSeekHead *seekhead )
{
EbmlParser
*
ep
;
EbmlElement
*
l
;
size_t
i
,
j
;
int
i_upper_level
=
0
;
bool
b_seekable
;
i_seekhead_count
++
;
...
...
@@ -125,6 +123,31 @@ void matroska_segment_c::ParseSeekHead( KaxSeekHead *seekhead )
delete
ep
;
}
/**
* Helper function to print the mkv parse tree
*/
static
void
MkvTree
(
demux_t
&
demuxer
,
int
i_level
,
const
char
*
psz_format
,
...
)
{
va_list
args
;
if
(
i_level
>
9
)
{
msg_Err
(
&
demuxer
,
"too deep tree"
);
return
;
}
va_start
(
args
,
psz_format
);
static
const
char
psz_foo
[]
=
"| | | | | | | | | |"
;
char
*
psz_foo2
=
(
char
*
)
malloc
(
i_level
*
4
+
3
+
strlen
(
psz_format
)
);
strncpy
(
psz_foo2
,
psz_foo
,
4
*
i_level
);
psz_foo2
[
4
*
i_level
]
=
'+'
;
psz_foo2
[
4
*
i_level
+
1
]
=
' '
;
strcpy
(
&
psz_foo2
[
4
*
i_level
+
2
],
psz_format
);
__msg_GenericVa
(
VLC_OBJECT
(
&
demuxer
),
VLC_MSG_DBG
,
"mkv"
,
psz_foo2
,
args
);
free
(
psz_foo2
);
va_end
(
args
);
}
/*****************************************************************************
* ParseTrackEntry:
*****************************************************************************/
...
...
modules/demux/mkv/mkv.cpp
View file @
318b67aa
...
...
@@ -278,7 +278,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
vlc_meta_t
*
p_meta
;
input_attachment_t
***
ppp_attach
;
int
*
pi_int
;
int
i
;
switch
(
i_query
)
{
...
...
@@ -294,7 +293,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_sys
->
stored_attachments
.
size
()
);
if
(
!
(
*
ppp_attach
)
)
return
VLC_ENOMEM
;
for
(
i
=
0
;
i
<
p_sys
->
stored_attachments
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
p_sys
->
stored_attachments
.
size
();
i
++
)
{
attachment_c
*
a
=
p_sys
->
stored_attachments
[
i
];
(
*
ppp_attach
)[
i
]
=
vlc_input_attachment_New
(
a
->
psz_file_name
.
c_str
(),
a
->
psz_mime_type
.
c_str
(),
NULL
,
...
...
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