From ee429ba7b8915de38f68d76940e7afcb31ee0b3e Mon Sep 17 00:00:00 2001 From: Alessandro Decina Date: Sun, 18 Dec 2011 17:31:18 +0100 Subject: [PATCH] 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. --- gst/mpegtsmux/mpegtsmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mpegtsmux/mpegtsmux.c b/gst/mpegtsmux/mpegtsmux.c index 7d968cd530..f204d0630b 100644 --- a/gst/mpegtsmux/mpegtsmux.c +++ b/gst/mpegtsmux/mpegtsmux.c @@ -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,