mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
baseaudiosrc: add some extra logging for buffer timestamps
This commit is contained in:
parent
85dbf93515
commit
2c5f455423
1 changed files with 10 additions and 2 deletions
|
@ -984,10 +984,18 @@ gst_base_audio_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
|
||||||
/* we are not slaved, subtract base_time */
|
/* we are not slaved, subtract base_time */
|
||||||
base_time = GST_ELEMENT_CAST (src)->base_time;
|
base_time = GST_ELEMENT_CAST (src)->base_time;
|
||||||
|
|
||||||
if (timestamp > base_time)
|
if (timestamp > base_time) {
|
||||||
timestamp -= base_time;
|
timestamp -= base_time;
|
||||||
else
|
GST_LOG_OBJECT (src,
|
||||||
|
"buffer timestamp %" GST_TIME_FORMAT " (base_time %" GST_TIME_FORMAT
|
||||||
|
")", GST_TIME_ARGS (timestamp), GST_TIME_ARGS (base_time));
|
||||||
|
} else {
|
||||||
|
GST_LOG_OBJECT (src,
|
||||||
|
"buffer timestamp 0, ts %" GST_TIME_FORMAT " <= base_time %"
|
||||||
|
GST_TIME_FORMAT, GST_TIME_ARGS (timestamp),
|
||||||
|
GST_TIME_ARGS (base_time));
|
||||||
timestamp = 0;
|
timestamp = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
no_sync:
|
no_sync:
|
||||||
|
|
Loading…
Reference in a new issue