Revert to origin code from gstreamer.ti.com.