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
bd134cba
Commit
bd134cba
authored
Feb 10, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TS Mux: simplify SDT parsing
parent
089fb216
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+8
-14
No files found.
modules/mux/mpeg/ts.c
View file @
bd134cba
...
...
@@ -583,23 +583,17 @@ static int Open( vlc_object_t *p_this )
char
*
psz_sdttoken
=
sdtdesc
;
for
(
int
i
=
0
;
psz_sdttoken
;
i
++
)
for
(
int
i
=
0
;
i
<
MAX_PMT
*
2
&&
psz_sdttoken
;
i
++
)
{
sdt_desc_t
*
sdt
=
&
p_sys
->
sdt_descriptors
[
i
/
2
];
char
*
psz_end
=
strchr
(
psz_sdttoken
,
','
);
if
(
psz_end
!=
NULL
)
{
if
(
psz_end
)
*
psz_end
++
=
'\0'
;
}
if
(
!
(
i
%
2
)
)
{
p_sys
->
sdt_descriptors
[
i
/
2
].
psz_provider
=
strdup
(
psz_sdttoken
);
}
if
(
i
%
2
)
sdt
->
psz_service_name
=
strdup
(
psz_sdttoken
);
else
{
p_sys
->
sdt_descriptors
[
i
/
2
].
psz_service_name
=
strdup
(
psz_sdttoken
);
}
sdt
->
psz_provider
=
strdup
(
psz_sdttoken
);
psz_sdttoken
=
psz_end
;
}
...
...
@@ -608,7 +602,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_data_alignment
=
var_GetBool
(
p_mux
,
SOUT_CFG_PREFIX
"alignment"
);
char
*
pgrpmt
=
var_GetNonEmptyString
(
p_mux
,
SOUT_CFG_PREFIX
"program-pmt"
);
char
*
pgrpmt
=
var_GetNonEmptyString
(
p_mux
,
SOUT_CFG_PREFIX
"program-pmt"
);
if
(
pgrpmt
)
{
char
*
psz
=
pgrpmt
;
...
...
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