diff options
author | Ole André Vadla Ravnås <oravnas@cisco.com> | 2009-08-31 19:33:30 +0200 |
---|---|---|
committer | Ole André Vadla Ravnås <oravnas@cisco.com> | 2010-10-28 17:08:35 +0200 |
commit | 00bc7860ffdcf522d4f20485e8d11156db233f03 (patch) | |
tree | dc3f4b9b017b6307937d2679358b59ddf6ece1f6 /sys/winks/gstksvideosrc.c | |
parent | 700f70e7a5a6ae6eed5ea6026ab5901a4c05aff1 (diff) | |
download | gstreamer-plugins-bad-00bc7860ffdcf522d4f20485e8d11156db233f03.tar.gz |
winks: post error message on flow-unexpected
Diffstat (limited to 'sys/winks/gstksvideosrc.c')
-rw-r--r-- | sys/winks/gstksvideosrc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/winks/gstksvideosrc.c b/sys/winks/gstksvideosrc.c index 74a3fab4b..1e3370be9 100644 --- a/sys/winks/gstksvideosrc.c +++ b/sys/winks/gstksvideosrc.c @@ -1077,11 +1077,15 @@ error_alloc_buffer: } error_read_frame: { - if (result != GST_FLOW_WRONG_STATE && result != GST_FLOW_UNEXPECTED) { + if (result == GST_FLOW_ERROR) { GST_ELEMENT_ERROR (self, RESOURCE, READ, ("read failed: %s [0x%08x]", error_str, error_code), ("gst_ks_video_device_read_frame failed")); } + else if (result == GST_FLOW_UNEXPECTED) { + GST_ELEMENT_ERROR (self, RESOURCE, READ, + ("read failed"), ("gst_ks_video_device_read_frame failed")); + } g_free (error_str); gst_buffer_unref (buf); |