mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
inputselector: Improve debugging
Merged from gst-plugins-base.
This commit is contained in:
parent
2448b2576f
commit
9a62107e94
1 changed files with 4 additions and 2 deletions
|
@ -579,6 +579,8 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf)
|
|||
/* update the segment on the srcpad */
|
||||
end_time = GST_BUFFER_TIMESTAMP (buf);
|
||||
if (GST_CLOCK_TIME_IS_VALID (end_time)) {
|
||||
GST_DEBUG_OBJECT (pad, "received start time %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (end_time));
|
||||
duration = GST_BUFFER_DURATION (buf);
|
||||
if (GST_CLOCK_TIME_IS_VALID (duration))
|
||||
end_time += duration;
|
||||
|
@ -598,7 +600,7 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf)
|
|||
GstSegment *cseg = &sel->segment;
|
||||
|
||||
GST_DEBUG_OBJECT (sel,
|
||||
"pushing NEWSEGMENT update %d, rate %lf, applied rate %lf, "
|
||||
"pushing close NEWSEGMENT update %d, rate %lf, applied rate %lf, "
|
||||
"format %d, "
|
||||
"%" G_GINT64_FORMAT " -- %" G_GINT64_FORMAT ", time %"
|
||||
G_GINT64_FORMAT, TRUE, cseg->rate, cseg->applied_rate, cseg->format,
|
||||
|
@ -613,7 +615,7 @@ gst_selector_pad_chain (GstPad * pad, GstBuffer * buf)
|
|||
/* if we have a pending segment, push it out now */
|
||||
if (G_UNLIKELY (selpad->segment_pending)) {
|
||||
GST_DEBUG_OBJECT (pad,
|
||||
"pushing NEWSEGMENT update %d, rate %lf, applied rate %lf, "
|
||||
"pushing pending NEWSEGMENT update %d, rate %lf, applied rate %lf, "
|
||||
"format %d, "
|
||||
"%" G_GINT64_FORMAT " -- %" G_GINT64_FORMAT ", time %"
|
||||
G_GINT64_FORMAT, FALSE, seg->rate, seg->applied_rate, seg->format,
|
||||
|
|
Loading…
Reference in a new issue