Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2020-06-25 09:37:56 +0300
committerMatthew Waters <matthew@centricular.com>2020-09-21 05:08:14 +0300
commit97e932d500fbecfff6794a4748e37f88b25c3599 (patch)
tree0076c615a8c65a2f59168d0f440301c6880176e2 /gst
parent37f0119f49904b186f1f237872535a7f30003eb5 (diff)
qtdemux: increase some logging on streams and sample parsing
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/643>
Diffstat (limited to 'gst')
-rw-r--r--gst/isomp4/qtdemux.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c
index 8fd74b892..3e06079d0 100644
--- a/gst/isomp4/qtdemux.c
+++ b/gst/isomp4/qtdemux.c
@@ -3544,7 +3544,7 @@ invalid_track:
}
unknown_stream:
{
- GST_DEBUG_OBJECT (qtdemux, "unknown stream in tfhd");
+ GST_DEBUG_OBJECT (qtdemux, "unknown stream (%u) in tfhd", track_id);
return TRUE;
}
}
@@ -5180,6 +5180,9 @@ gst_qtdemux_advance_sample (GstQTDemux * qtdemux, QtDemuxStream * stream)
stream->sample_index++;
stream->offset_in_sample = 0;
+ GST_TRACE_OBJECT (qtdemux, "advance to sample %u/%u", stream->sample_index,
+ stream->n_samples);
+
/* reached the last sample, we need the next segment */
if (G_UNLIKELY (stream->sample_index >= stream->n_samples))
goto next_segment;
@@ -5193,6 +5196,10 @@ gst_qtdemux_advance_sample (GstQTDemux * qtdemux, QtDemuxStream * stream)
/* get next sample */
sample = &stream->samples[stream->sample_index];
+ GST_TRACE_OBJECT (qtdemux, "sample dts %" GST_TIME_FORMAT " media_stop: %"
+ GST_TIME_FORMAT, GST_TIME_ARGS (QTSAMPLE_DTS (stream, sample)),
+ GST_TIME_ARGS (segment->media_stop));
+
/* see if we are past the segment */
if (G_UNLIKELY (QTSAMPLE_DTS (stream, sample) >= segment->media_stop))
goto next_segment;
@@ -12964,7 +12971,7 @@ qtdemux_prepare_streams (GstQTDemux * qtdemux)
GstFlowReturn ret = GST_FLOW_OK;
gint i;
- GST_DEBUG_OBJECT (qtdemux, "prepare streams");
+ GST_DEBUG_OBJECT (qtdemux, "prepare %u streams", QTDEMUX_N_STREAMS (qtdemux));
for (i = 0; i < QTDEMUX_N_STREAMS (qtdemux); i++) {
QtDemuxStream *stream = QTDEMUX_NTH_STREAM (qtdemux, i);