Fixed several issues found by static analysis, GStreamer backend
Fixed several issues found by static analysis, GStreamer backend

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv