mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Only report signal recovery after actually capturing a frame
This commit is contained in:
parent
08308c28a2
commit
02519523df
1 changed files with 6 additions and 6 deletions
|
@ -1713,12 +1713,6 @@ restart:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!have_signal) {
|
|
||||||
GST_ELEMENT_INFO(GST_ELEMENT(self), RESOURCE, READ, ("Signal recovered"),
|
|
||||||
("Input source detected"));
|
|
||||||
have_signal = TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
AUTOCIRCULATE_STATUS status;
|
AUTOCIRCULATE_STATUS status;
|
||||||
|
|
||||||
self->device->device->AutoCirculateGetStatus(self->channel, status);
|
self->device->device->AutoCirculateGetStatus(self->channel, status);
|
||||||
|
@ -1771,6 +1765,12 @@ restart:
|
||||||
GstMapInfo anc_map2 = GST_MAP_INFO_INIT;
|
GstMapInfo anc_map2 = GST_MAP_INFO_INIT;
|
||||||
AUTOCIRCULATE_TRANSFER transfer;
|
AUTOCIRCULATE_TRANSFER transfer;
|
||||||
|
|
||||||
|
if (!have_signal) {
|
||||||
|
GST_ELEMENT_INFO(GST_ELEMENT(self), RESOURCE, READ, ("Signal recovered"),
|
||||||
|
("Input source detected"));
|
||||||
|
have_signal = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
iterations_without_frame = 0;
|
iterations_without_frame = 0;
|
||||||
|
|
||||||
if (gst_buffer_pool_acquire_buffer(self->buffer_pool, &video_buffer,
|
if (gst_buffer_pool_acquire_buffer(self->buffer_pool, &video_buffer,
|
||||||
|
|
Loading…
Reference in a new issue