audiodecoder: make sure caps is set before forwarding gap event
authorThiago Santos <ts.santos@sisa.samsung.com>
Mon, 13 Jan 2014 23:44:23 +0000 (20:44 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Tue, 14 Jan 2014 12:34:44 +0000 (09:34 -0300)
commit8cf8332b91a2caf3b23f711ea1eecd7430a0bfa5
tree6988266e858240589f71ba8338fa1168cfa8fcea
parentbbbd9f7d49ac0635776eba816af08bb533be9ea1
audiodecoder: make sure caps is set before forwarding gap event

Before trying to generate a default fixated caps when handling a gap
event, make sure that the same strategy that is used when handling
a buffer has been attempted. Otherwise audiodecoder will ignore
upstream caps settings such as rate and channels and will likely
end with a caps with channels=1 and rate=1.

https://bugzilla.gnome.org/show_bug.cgi?id=722144
gst-libs/gst/audio/gstaudiodecoder.c