mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: elaborate some debug statements
This commit is contained in:
parent
6b168ffb44
commit
96fc28eacd
1 changed files with 6 additions and 4 deletions
|
@ -1106,8 +1106,9 @@ gst_qtdemux_adjust_seek (GstQTDemux * qtdemux, gint64 desired_time,
|
||||||
|
|
||||||
/* get the index of the sample with media time */
|
/* get the index of the sample with media time */
|
||||||
index = gst_qtdemux_find_index_linear (qtdemux, str, media_start);
|
index = gst_qtdemux_find_index_linear (qtdemux, str, media_start);
|
||||||
GST_DEBUG_OBJECT (qtdemux, "sample for %" GST_TIME_FORMAT " at %u",
|
GST_DEBUG_OBJECT (qtdemux, "sample for %" GST_TIME_FORMAT " at %u"
|
||||||
GST_TIME_ARGS (media_start), index);
|
" at offset %" G_GUINT64_FORMAT,
|
||||||
|
GST_TIME_ARGS (media_start), index, str->samples[index].offset);
|
||||||
|
|
||||||
/* find previous keyframe */
|
/* find previous keyframe */
|
||||||
kindex = gst_qtdemux_find_keyframe (qtdemux, str, index);
|
kindex = gst_qtdemux_find_keyframe (qtdemux, str, index);
|
||||||
|
@ -1121,8 +1122,9 @@ gst_qtdemux_adjust_seek (GstQTDemux * qtdemux, gint64 desired_time,
|
||||||
media_time =
|
media_time =
|
||||||
gst_util_uint64_scale (str->samples[kindex].timestamp, GST_SECOND,
|
gst_util_uint64_scale (str->samples[kindex].timestamp, GST_SECOND,
|
||||||
str->timescale);
|
str->timescale);
|
||||||
GST_DEBUG_OBJECT (qtdemux, "keyframe at %u with time %" GST_TIME_FORMAT,
|
GST_DEBUG_OBJECT (qtdemux, "keyframe at %u with time %" GST_TIME_FORMAT
|
||||||
kindex, GST_TIME_ARGS (media_time));
|
" at offset %" G_GUINT64_FORMAT,
|
||||||
|
kindex, GST_TIME_ARGS (media_time), str->samples[kindex].offset);
|
||||||
|
|
||||||
/* keyframes in the segment get a chance to change the
|
/* keyframes in the segment get a chance to change the
|
||||||
* desired_offset. keyframes out of the segment are
|
* desired_offset. keyframes out of the segment are
|
||||||
|
|
Loading…
Reference in a new issue