uvch264_src: add missing break in caps query handler
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 22 Jun 2015 02:03:15 +0000 (11:03 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 22 Jun 2015 08:20:18 +0000 (09:20 +0100)
There is a missing break statement in switch,
which will result in executing default case as well
resulting in wrong behavior

https://bugzilla.gnome.org/show_bug.cgi?id=751305

sys/uvch264/gstuvch264_src.c

index 4011e97..5ef6c96 100644 (file)
@@ -3071,6 +3071,7 @@ gst_uvc_h264_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
       gst_query_set_caps_result (query,
           gst_uvc_h264_src_getcaps (pad, parent, query));
       ret = TRUE;
+      break;
     default:
       ret = gst_pad_query_default (pad, parent, query);
       break;