Fixed compatibility with GStreamer 1.x