v4l2videodec: gst_poll_wait return 1 after wake up from system sleep
We make the system enter sleep state during play a video. After woken up, gst_poll_wait return value 1 in function "gst_v4l2_buffer_pool_poll". And then player exit. The error log like this:
gst-play gstplay.c:1024:error_cb:<play0>ERROR: from element /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0: Could not read from resource.
gst-play gstplay.c:1026:error_cb:<play0>[00m Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.22.0.imx-r0/sys/v4l2/gstv4l2bufferpool.c(1224): gst_v4l2_buffer_pool_poll (): /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0:
poll error 1: Resource temporarily unavailable (11)
gst-play gstplay.c:946:on_error:<play0>[00m Error: Error from element /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0: Could not read from resource.
Could not read from resource.
/usr/src/debug/gstreamer1.0-plugins-good/1.22.0.imx-r0/sys/v4l2/gstv4l2bufferpool.c(1224): gst_v4l2_buffer_pool_poll (): /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0:
poll error 1: Resource temporarily unavailable (11) (gst-play-error-quark, 0)
ERROR Error from element /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0: Could not read from resource.
Could not read from resource.
/usr/src/debug/gstreamer1.0-plugins-good/1.22.0.imx-r0/sys/v4l2/gstv4l2bufferpool.c(1224): gst_v4l2_buffer_pool_poll (): /GstPlayBin3:playbin3/GstURIDecodeBin3:uridecodebin3/GstDecodebin3:decodebin3-0/v4l2vp9dec:v4l2vp9dec0:
poll error 1: Resource temporarily unavailable (11) for /home/root/test_rEqxpj20wM.bin
getNextItem No next item!
No more media file, exit gplay!
gst_poll_fd_has_error return true and errno is EAGAIN.
Can we ignore this sense and try gst_poll_wait again?