mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -888,7 +888,7 @@ mpegtsmux_collected (GstCollectPads2 * pads, MpegTsMux * mux)
|
||||||
return GST_FLOW_ERROR;
|
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;
|
GstEvent *event;
|
||||||
|
|
||||||
event = check_pending_key_unit_event (mux->force_key_unit_event,
|
event = check_pending_key_unit_event (mux->force_key_unit_event,
|
||||||
|
|
Loading…
Reference in a new issue