mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
mpegtsmux: only video can have non-delta-unit
This commit is contained in:
parent
5fab65aafb
commit
67e5d76d08
1 changed files with 3 additions and 3 deletions
|
@ -622,7 +622,7 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
|
||||||
TsMuxProgram *prog = best->prog;
|
TsMuxProgram *prog = best->prog;
|
||||||
GstBuffer *buf = best->queued_buf;
|
GstBuffer *buf = best->queued_buf;
|
||||||
gint64 pts = -1;
|
gint64 pts = -1;
|
||||||
gboolean delta;
|
gboolean delta = TRUE;
|
||||||
|
|
||||||
if (prog == NULL) {
|
if (prog == NULL) {
|
||||||
GST_ELEMENT_ERROR (mux, STREAM, MUX, ("Stream is not associated with "
|
GST_ELEMENT_ERROR (mux, STREAM, MUX, ("Stream is not associated with "
|
||||||
|
@ -643,10 +643,10 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
|
||||||
}
|
}
|
||||||
|
|
||||||
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
|
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
|
||||||
delta = GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
if (best->stream->is_video_stream)
|
||||||
|
delta = GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DELTA_UNIT);
|
||||||
GST_DEBUG_OBJECT (mux, "delta: %d", delta);
|
GST_DEBUG_OBJECT (mux, "delta: %d", delta);
|
||||||
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
|
GST_DEBUG_OBJECT (COLLECT_DATA_PAD (best),
|
||||||
"Chose stream for output (PID: 0x%04x)", best->pid);
|
"Chose stream for output (PID: 0x%04x)", best->pid);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue