diff --git a/ext/openni2/gstopenni2src.cpp b/ext/openni2/gstopenni2src.cpp index 9a49396a47..a60dca4a1b 100644 --- a/ext/openni2/gstopenni2src.cpp +++ b/ext/openni2/gstopenni2src.cpp @@ -744,6 +744,9 @@ openni2_read_gstbuffer (GstOpenni2Src * src, GstBuffer * buf) src->colorFrame->getWidth (), src->colorFrame->getHeight (), src->colorFrame->getDataSize ()); + } else { + g_return_val_if_reached (GST_FLOW_ERROR); + return GST_FLOW_ERROR; } if (G_UNLIKELY (src->oni_start_ts == GST_CLOCK_TIME_NONE))