GNOME Bugzilla – Bug 312804
audiosinks happily go to GST_STATE_READY if device does not exist
Last modified: 2005-10-03 11:34:00 UTC
Several applications use a GST_STATE_NULL_TO_READY state-change to check whether a device exists; they do this because it works in 0.8.x and because the application development manual documents this state change as intended for opening non-stream resources (such as opening audio devices). In HEAD/0.9, however, the device is only opened when a caps is negotiated, which degrades performance and makes the above not work.
This is a bit tricky, as we really don't know the format until the first buffer goes through. Would rather not fixate just to check to see if the device is openable. Hm.
The open and setformat code doesn't have to be the same function...
The audiosinks are fixed now. Sources probably still need a bit of work.