Ported to gstreamer 1.0