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
3bf459f3
Commit
3bf459f3
authored
Nov 28, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix text subtitles which were missing their last char since the API port.
* Track Name is now stored in fmt.psz_description
parent
a366f66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+15
-8
No files found.
modules/demux/mkv.cpp
View file @
3bf459f3
...
...
@@ -2,7 +2,7 @@
* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: mkv.cpp,v 1.4
5 2003/11/27 04:11:40 fenrir
Exp $
* $Id: mkv.cpp,v 1.4
6 2003/11/28 17:30:31 hartman
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -197,7 +197,6 @@ typedef struct
vlc_bool_t
b_search_keyframe
;
/* informative */
char
*
psz_name
;
char
*
psz_codec_name
;
char
*
psz_codec_settings
;
char
*
psz_codec_info_url
;
...
...
@@ -475,6 +474,7 @@ static int Open( vlc_object_t * p_this )
es_format_Init
(
&
tk
.
fmt
,
UNKNOWN_ES
,
0
);
tk
.
fmt
.
psz_language
=
strdup
(
"English"
);
tk
.
fmt
.
psz_description
=
NULL
;
tk
.
b_default
=
VLC_TRUE
;
tk
.
b_enabled
=
VLC_TRUE
;
...
...
@@ -489,7 +489,6 @@ static int Open( vlc_object_t * p_this )
tk
.
i_data_init
=
0
;
tk
.
p_data_init
=
NULL
;
tk
.
psz_name
=
NULL
;
tk
.
psz_codec_name
=
NULL
;
tk
.
psz_codec_settings
=
NULL
;
tk
.
psz_codec_info_url
=
NULL
;
...
...
@@ -607,9 +606,9 @@ static int Open( vlc_object_t * p_this )
KaxTrackName
&
tname
=
*
(
KaxTrackName
*
)
el3
;
tname
.
ReadData
(
p_sys
->
es
->
I_O
()
);
tk
.
psz_name
=
UTF8ToStr
(
UTFstring
(
tname
)
);
tk
.
fmt
.
psz_description
=
UTF8ToStr
(
UTFstring
(
tname
)
);
msg_Dbg
(
p_input
,
"| | | + Track Name=%s"
,
tk
.
psz_name
);
tk
.
fmt
.
psz_description
);
}
else
if
(
EbmlId
(
*
el3
)
==
KaxTrackLanguage
::
ClassInfos
.
GlobalId
)
{
...
...
@@ -1213,6 +1212,10 @@ static void Close( vlc_object_t *p_this )
for
(
i_track
=
0
;
i_track
<
p_sys
->
i_track
;
i_track
++
)
{
#define tk p_sys->track[i_track]
if
(
tk
.
fmt
.
psz_description
)
{
free
(
tk
.
fmt
.
psz_language
);
}
if
(
tk
.
psz_codec
)
{
free
(
tk
.
psz_codec
);
...
...
@@ -1508,7 +1511,7 @@ static void BlockDecode( input_thread_t *p_input, KaxBlock *block, mtime_t i_pts
if
(
p_block
->
i_buffer
>
0
)
{
p_block
->
p_buffer
[
p_block
->
i_buffer
-
1
]
=
'\0'
;
p_block
->
p_buffer
[
p_block
->
i_buffer
]
=
'\0'
;
}
}
es_out_Send
(
p_input
->
p_es_out
,
tk
.
p_es
,
p_block
);
...
...
@@ -2212,9 +2215,13 @@ static void InformationsCreate( input_thread_t *p_input )
sprintf
(
psz_cat
,
"Stream %d"
,
i_track
);
p_cat
=
input_InfoCategory
(
p_input
,
psz_cat
);
if
(
tk
.
psz_name
)
if
(
tk
.
fmt
.
psz_description
)
{
input_AddInfo
(
p_cat
,
_
(
"Name"
),
"%s"
,
tk
.
fmt
.
psz_description
);
}
if
(
tk
.
fmt
.
psz_language
)
{
input_AddInfo
(
p_cat
,
_
(
"
Name"
),
"%s"
,
tk
.
psz_nam
e
);
input_AddInfo
(
p_cat
,
_
(
"
Language"
),
"%s"
,
tk
.
fmt
.
psz_languag
e
);
}
if
(
tk
.
psz_codec_name
)
{
...
...
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