audiovisualizer: handle non-existant pool in the default allocation query
authorMatthew Waters <ystreet00@gmail.com>
Thu, 14 Mar 2013 00:15:29 +0000 (11:15 +1100)
committerTim-Philipp Müller <tim@centricular.net>
Thu, 4 Apr 2013 23:38:36 +0000 (00:38 +0100)
commitbf502f55020ee20a93cce88c1808f2943c26a657
tree5d3cf2ed1a75d48546a78b04d87c955d73ca43d4
parent5d72759fecf260fccd5f8d4c7c9732984405d0b7
audiovisualizer: handle non-existant pool in the default allocation query

gst_query_set_nth_allocation_pool() requires there to be a pool in the
query already. This is not always the case when we get the query from
upstream.  Use gst_query_add_allocation_pool() instead in such case.

https://bugzilla.gnome.org/show_bug.cgi?id=681719
gst/audiovisualizers/gstaudiovisualizer.c