From 9b809d4cc3ccc101988a2b62e9c2585904fe9e13 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 9 Nov 2021 12:01:13 +0100 Subject: [PATCH] appsrc: log when segment changes We were logging when it does not change but not when it does, which is confusing when reading logs. Part-of: --- subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c index ce0875d614..16d2a325c1 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/app/gstappsrc.c @@ -2761,6 +2761,10 @@ gst_app_src_push_sample_internal (GstAppSrc * appsrc, GstSample * sample) GST_LOG_OBJECT (appsrc, "segment wasn't changed"); g_mutex_unlock (&priv->mutex); goto handle_buffer; + } else { + GST_LOG_OBJECT (appsrc, + "segment changed %" GST_SEGMENT_FORMAT " -> %" GST_SEGMENT_FORMAT, + &priv->last_segment, segment); } /* will be pushed to queue with next buffer/buffer-list */