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:
parent
7ca4ba9491
commit
ee429ba7b8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user