Decouple GStreamer module from cv2 streaming codes.