mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
de95d3a1c4
commit
9b809d4cc3
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue