cap.release() gives error of gstreamer pipeline. What condition should be tested before releasing the pipeline?

asked 2018-02-12 23:09:38 -0500

GStreamer-CRITICAL **: Trying to dispose element videoconvert0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

GStreamer-CRITICAL **: Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

GStreamer-CRITICAL **: Trying to dispose element videoscale0, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

GStreamer-CRITICAL **: Trying to dispose element pipeline0, but it is in PLAYING instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference, to allow them to clean up. This problem may also be caused by a refcounting bug in the application or some element.

edit retag flag offensive close merge delete