diff options
author | Peter Seiderer <ps.report@gmx.net> | 2018-01-12 09:53:37 +0100 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-01-12 09:21:18 -0500 |
commit | d2f9040e1df27ba620eeafc63bd3a9645ac1e919 (patch) | |
tree | 2af9b68b184b635147c5a605365b67e39baf5f33 | |
parent | 2cd772b97a47aebfcac148b1c99b2e1c46e69a91 (diff) |
v4l2videodec: add property set/get PROP_CAPTURE_IO_MODE error handling
https://bugzilla.gnome.org/show_bug.cgi?id=791841
-rw-r--r-- | sys/v4l2/gstv4l2videodec.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/v4l2/gstv4l2videodec.c b/sys/v4l2/gstv4l2videodec.c index d1d1b9536..dc06774a6 100644 --- a/sys/v4l2/gstv4l2videodec.c +++ b/sys/v4l2/gstv4l2videodec.c @@ -67,8 +67,10 @@ gst_v4l2_video_dec_set_property (GObject * object, switch (prop_id) { case PROP_CAPTURE_IO_MODE: - gst_v4l2_object_set_property_helper (self->v4l2capture, prop_id, value, - pspec); + if (!gst_v4l2_object_set_property_helper (self->v4l2capture, + prop_id, value, pspec)) { + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + } break; /* By default, only set on output */ @@ -89,8 +91,10 @@ gst_v4l2_video_dec_get_property (GObject * object, switch (prop_id) { case PROP_CAPTURE_IO_MODE: - gst_v4l2_object_get_property_helper (self->v4l2capture, prop_id, value, - pspec); + if (!gst_v4l2_object_get_property_helper (self->v4l2capture, + prop_id, value, pspec)) { + G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); + } break; /* By default read from output */ |