playbin3: avoid plugging a decoder element when the sink handle encoded data
Submitted by Arnaud Vrac
Link to original bug (#772258)
I have an audio sink that can take compressed audio and render it directly. In playbin2 no decoder is plugged between the demuxer and the sink, allowing hardware offloading of the audio decoding.
However in playbin3, the fact that the sink can decode audio is ignored and a decoder is plugged in, which is sub-optimal.