Only query duration when needed
Assert for errors in tempo pitch test
Dont sleep when messages are waiting on gst_bus
Wait for state change before continuing
Implement support for GST_STATE_CHANGE_ASYNC when seeking