visualizer: 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>
Mon, 1 Apr 2013 20:13:38 +0000 (21:13 +0100)
commit4f1ba51c4bf1b04867976ad081057c2d06ae36bb
tree4528beafa4072b6d44585d48c54fe764d763d214
parent229d7aa910c9034aeb54994cc3aadea7614526b1
visualizer: 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
ext/libvisual/gstaudiovisualizer.c