mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
mpegtsmux: avoid using clipped out buffers
If a buffer was entirely clipped out (ie, it's out of the segment entirely), we'll end up with a NULL buffer, which we don't want to process/dereference.
This commit is contained in:
parent
1f7fa9be1d
commit
5c82a510d9
1 changed files with 2 additions and 0 deletions
|
@ -977,6 +977,7 @@ mpegtsmux_clip_inc_running_time (GstCollectPads * pads,
|
|||
GST_DEBUG_OBJECT (cdata->pad, "clipping buffer on pad outside segment");
|
||||
gst_buffer_unref (buf);
|
||||
*outbuf = NULL;
|
||||
goto beach;
|
||||
} else {
|
||||
GST_LOG_OBJECT (cdata->pad, "buffer pts %" GST_TIME_FORMAT " -> %"
|
||||
GST_TIME_FORMAT " running time",
|
||||
|
@ -1023,6 +1024,7 @@ mpegtsmux_clip_inc_running_time (GstCollectPads * pads,
|
|||
gst_buffer_unref (buf);
|
||||
}
|
||||
|
||||
beach:
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue