Commit 7a2110a4 authored by Sebastian Dröge's avatar 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
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment