gstreamer does not detect disconnection of usb devices on Ubuntu 20.04
when I launch gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! ximagesink
on ubuntu 18.04 and disconnect the usb from the web cam I get the following information
ERROR: del elemento /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: No se pudo leer del recurso. Información adicional de depuración: gstv4l2bufferpool.c(1058): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: poll error 1: Recurso no disponible temporalmente (11) Execution ended after 0:00:16.753008876 Estableciendo el conducto a PAUSA … Estableciando el conducto a PREPARADO … Estableciendo el conducto a NULL … Liberando la tubería…
and the program closes. on ubunutu 18.04 works fine
However when I launch the same command in ubuntu 20.04 I get no callback and the webcam window freezes.