mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
qtdemux: mark delta-unit in the index
We need to use the delta flag fro delta units and not none. Print more details to the debug log.
This commit is contained in:
parent
9852f1cee6
commit
b38cf735a5
1 changed files with 3 additions and 2 deletions
|
@ -1741,7 +1741,8 @@ gst_qtdemux_set_index (GstElement * element, GstIndex * index)
|
|||
/* object lock might be taken again */
|
||||
if (index)
|
||||
gst_index_get_writer_id (index, GST_OBJECT (element), &demux->index_id);
|
||||
GST_DEBUG_OBJECT (demux, "Set index %" GST_PTR_FORMAT, demux->element_index);
|
||||
GST_DEBUG_OBJECT (demux, "Set index %" GST_PTR_FORMAT "for writer id %d",
|
||||
demux->element_index, demux->index_id);
|
||||
}
|
||||
|
||||
static GstIndex *
|
||||
|
@ -3623,7 +3624,7 @@ gst_qtdemux_decorate_and_push_buffer (GstQTDemux * qtdemux,
|
|||
gst_index_add_association (qtdemux->element_index,
|
||||
qtdemux->index_id,
|
||||
keyframe ? GST_ASSOCIATION_FLAG_KEY_UNIT :
|
||||
GST_ASSOCIATION_FLAG_NONE, GST_FORMAT_TIME, stream_time,
|
||||
GST_ASSOCIATION_FLAG_DELTA_UNIT, GST_FORMAT_TIME, stream_time,
|
||||
GST_FORMAT_BYTES, byte_position, NULL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue