Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Normand
gst-plugins-bad
Commits
7a2110a4
Commit
7a2110a4
authored
Mar 29, 2018
by
Sebastian Dröge
🍵
Browse files
mpegtsmux: Resend initial segments and header sections after FLUSH_STOP
https://bugzilla.gnome.org/show_bug.cgi?id=794816
parent
35b6411d
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst/mpegtsmux/mpegtsmux.c
View file @
7a2110a4
...
...
@@ -1086,6 +1086,25 @@ mpegtsmux_sink_event (GstCollectPads * pads, GstCollectData * data,
}
break
;
}
case
GST_EVENT_FLUSH_STOP
:{
GList
*
cur
;
/* Send initial segments again after a flush-stop, and also resend the
* header sections */
mux
->
first
=
TRUE
;
/* output PAT, SI tables */
tsmux_resend_pat
(
mux
->
tsmux
);
tsmux_resend_si
(
mux
->
tsmux
);
/* output PMT for each program */
for
(
cur
=
mux
->
tsmux
->
programs
;
cur
;
cur
=
cur
->
next
)
{
TsMuxProgram
*
program
=
(
TsMuxProgram
*
)
cur
->
data
;
tsmux_resend_pmt
(
program
);
}
break
;
}
default:
break
;
}
...
...
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