examples: playback-test: fix crashes when setting buffer-size
authorTim-Philipp Müller <tim@centricular.com>
Tue, 6 May 2014 06:51:11 +0000 (07:51 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 6 May 2014 07:14:02 +0000 (08:14 +0100)
commite5b4e30baab2378e9bb63550b815ff923bf8c806
tree2fc31d53f7da98f27769a7d6ed3db47bf32d71f8
parentbb74096870a4b7cfbad3461c5b64c038e2d35150
examples: playback-test: fix crashes when setting buffer-size

playbin's buffer-size property takes a gint, not a gint64,
so only pass the bits expected to the vararg function, or
the terminator might not be found, leading to crashes, esp.
with negative numbers.

Spotted by Ravi Kiran K N <ravi.kiran@samsung.com>

https://bugzilla.gnome.org/show_bug.cgi?id=729617
tests/examples/playback/playback-test.c