mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
inputselector: log times in human readable form
This commit is contained in:
parent
7f787249bb
commit
baa2fbbb68
1 changed files with 7 additions and 7 deletions
|
@ -956,12 +956,12 @@ gst_input_selector_set_active_pad (GstInputSelector * self,
|
||||||
GST_DEBUG_OBJECT (self, "setting active pad to %s:%s",
|
GST_DEBUG_OBJECT (self, "setting active pad to %s:%s",
|
||||||
GST_DEBUG_PAD_NAME (new));
|
GST_DEBUG_PAD_NAME (new));
|
||||||
|
|
||||||
if (stop_time == -1 && old) {
|
if (!GST_CLOCK_TIME_IS_VALID (stop_time) && old) {
|
||||||
/* no stop time given, get the latest running_time on the active pad to
|
/* no stop time given, get the latest running_time on the active pad to
|
||||||
* close and open the new segment */
|
* close and open the new segment */
|
||||||
stop_time = start_time = gst_selector_pad_get_running_time (old);
|
stop_time = start_time = gst_selector_pad_get_running_time (old);
|
||||||
GST_DEBUG_OBJECT (self, "using start/stop of %" G_GINT64_FORMAT,
|
GST_DEBUG_OBJECT (self, "using start/stop of %" GST_TIME_FORMAT,
|
||||||
start_time);
|
GST_TIME_ARGS (start_time));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (old && old->active && !self->pending_close && stop_time >= 0) {
|
if (old && old->active && !self->pending_close && stop_time >= 0) {
|
||||||
|
@ -969,15 +969,15 @@ gst_input_selector_set_active_pad (GstInputSelector * self,
|
||||||
segment has been pushed before. */
|
segment has been pushed before. */
|
||||||
memcpy (&self->segment, &old->segment, sizeof (self->segment));
|
memcpy (&self->segment, &old->segment, sizeof (self->segment));
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (self, "setting stop_time to %" G_GINT64_FORMAT,
|
GST_DEBUG_OBJECT (self, "setting stop_time to %" GST_TIME_FORMAT,
|
||||||
stop_time);
|
GST_TIME_ARGS (stop_time));
|
||||||
gst_segment_set_stop (&self->segment, stop_time);
|
gst_segment_set_stop (&self->segment, stop_time);
|
||||||
self->pending_close = TRUE;
|
self->pending_close = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (new && new->active && start_time >= 0) {
|
if (new && new->active && start_time >= 0) {
|
||||||
GST_DEBUG_OBJECT (self, "setting start_time to %" G_GINT64_FORMAT,
|
GST_DEBUG_OBJECT (self, "setting start_time to %" GST_TIME_FORMAT,
|
||||||
start_time);
|
GST_TIME_ARGS (start_time));
|
||||||
/* schedule a new segment push */
|
/* schedule a new segment push */
|
||||||
gst_segment_set_start (&new->segment, start_time);
|
gst_segment_set_start (&new->segment, start_time);
|
||||||
new->segment_pending = TRUE;
|
new->segment_pending = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue