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
ebdb86c2
Commit
ebdb86c2
authored
Feb 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setid: do not clobber format
parent
862771a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
modules/stream_out/setid.c
modules/stream_out/setid.c
+14
-6
No files found.
modules/stream_out/setid.c
View file @
ebdb86c2
...
...
@@ -188,30 +188,38 @@ static void Close( vlc_object_t * p_this )
static
sout_stream_id_sys_t
*
AddId
(
sout_stream_t
*
p_stream
,
es_format_t
*
p_fmt
)
{
sout_stream_sys_t
*
p_sys
=
(
sout_stream_sys_t
*
)
p_stream
->
p_sys
;
es_format_t
fmt
;
if
(
p_fmt
->
i_id
==
p_sys
->
i_id
)
{
msg_Dbg
(
p_stream
,
"turning ID %d to %d"
,
p_sys
->
i_id
,
p_sys
->
i_new_id
);
p_fmt
->
i_id
=
p_sys
->
i_new_id
;
msg_Dbg
(
p_stream
,
"turning ID %d to %d"
,
p_sys
->
i_id
,
p_sys
->
i_new_id
);
fmt
=
*
p_fmt
;
fmt
.
i_id
=
p_sys
->
i_new_id
;
p_fmt
=
&
fmt
;
}
return
p_stream
->
p_next
->
pf_a
dd
(
p_stream
->
p_next
,
p_fmt
);
return
sout_StreamIdA
dd
(
p_stream
->
p_next
,
p_fmt
);
}
static
sout_stream_id_sys_t
*
AddLang
(
sout_stream_t
*
p_stream
,
es_format_t
*
p_fmt
)
{
sout_stream_sys_t
*
p_sys
=
(
sout_stream_sys_t
*
)
p_stream
->
p_sys
;
es_format_t
fmt
;
if
(
p_fmt
->
i_id
==
p_sys
->
i_id
)
{
msg_Dbg
(
p_stream
,
"turning language %s of ID %d to %s"
,
p_fmt
->
psz_language
?
p_fmt
->
psz_language
:
"unk"
,
p_sys
->
i_id
,
p_sys
->
psz_language
);
p_fmt
->
psz_language
=
strdup
(
p_sys
->
psz_language
);
fmt
=
*
p_fmt
;
fmt
.
psz_language
=
p_sys
->
psz_language
;
p_fmt
=
&
fmt
;
}
return
p_stream
->
p_next
->
pf_a
dd
(
p_stream
->
p_next
,
p_fmt
);
return
sout_StreamIdA
dd
(
p_stream
->
p_next
,
p_fmt
);
}
static
void
Del
(
sout_stream_t
*
p_stream
,
sout_stream_id_sys_t
*
id
)
...
...
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