mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
v4l2codecs: decoder: Improve logging of timed out request
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1439>
This commit is contained in:
parent
c4216a693c
commit
3f02515380
1 changed files with 9 additions and 1 deletions
|
@ -1132,8 +1132,16 @@ gst_v4l2_request_set_done (GstV4l2Request * request)
|
|||
return 1;
|
||||
|
||||
ret = gst_poll_wait (request->poll, GST_SECOND);
|
||||
if (ret <= 0)
|
||||
if (ret == 0) {
|
||||
GST_WARNING_OBJECT (decoder, "Request %p took too long.", request);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
GST_WARNING_OBJECT (decoder, "Request %p error: %s (%i)",
|
||||
request, g_strerror (errno), errno);
|
||||
return ret;
|
||||
}
|
||||
|
||||
while ((pending_req = gst_queue_array_pop_head (decoder->pending_requests))) {
|
||||
gst_v4l2_decoder_dequeue_sink (decoder);
|
||||
|
|
Loading…
Reference in a new issue