mpegtsmux: only video can have non-delta-unit

This commit is contained in:
Marc-André Lureau 2010-01-08 16:06:38 +00:00 committed by Zaheer Abbas Merali
parent 5fab65aafb
commit 67e5d76d08

View file

@ -622,7 +622,7 @@ mpegtsmux_collected (GstCollectPads * pads, MpegTsMux * mux)
TsMuxProgram *prog = best->prog;
GstBuffer *buf = best->queued_buf;
gint64 pts = -1;
gboolean delta;
gboolean delta = TRUE;
if (prog == NULL) {
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);
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 (COLLECT_DATA_PAD (best),
"Chose stream for output (PID: 0x%04x)", best->pid);