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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1327>
This commit is contained in:
Guillaume Desmottes 2021-11-09 12:01:13 +01:00 committed by GStreamer Marge Bot
parent de95d3a1c4
commit 9b809d4cc3

View file

@ -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 */