fork from GStreamer base 1.0