mpegtsmux: fix key unit event handling when muxing both audio and video

Take only video buffers into account when deciding when to cut so that new units
start with a video keyframe.
This commit is contained in:
Alessandro Decina 2011-12-18 17:31:18 +01:00
parent 7ca4ba9491
commit ee429ba7b8

View file

@ -888,7 +888,7 @@ mpegtsmux_collected (GstCollectPads2 * pads, MpegTsMux * mux)
return GST_FLOW_ERROR;
}
if (mux->force_key_unit_event != NULL) {
if (mux->force_key_unit_event != NULL && best->stream->is_video_stream) {
GstEvent *event;
event = check_pending_key_unit_event (mux->force_key_unit_event,