v4l2object: Don't assert when used by the monitor
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 22:29:01 +0000 (18:29 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 23:17:49 +0000 (19:17 -0400)
commitf0678d73b1f379816cf8ea7fb25807ea49768997
tree2b306110360f2f7d9287eb94e909f9833dba7d1f
parente62bd2f7d8a43f9924c2f89ed4230e9389c7f0e6
v4l2object: Don't assert when used by the monitor

The monitor sets the object->element object as a GstObject. This
works for debug traces, but will assert for ELEMENT_ERROR. This
was the only case where that could happen. Add a check for that.
sys/v4l2/gstv4l2object.c