basesrc: handle reference in set_allocation rather than in prepare_allocation
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 15 Sep 2014 14:38:17 +0000 (16:38 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 16 Sep 2014 07:17:28 +0000 (10:17 +0300)
commitfefd6d06a1ede32573730e1f99f19bf1da4b6fd5
treeb14f0a6d8646c50ff92cb7499aca6bdc6c147906
parent84c6e885f1c1d49988b7db81f7cd2ad3829b1330
basesrc: handle reference in set_allocation rather than in prepare_allocation

Otherwise we can forget to unref objects in error cases.

https://bugzilla.gnome.org/show_bug.cgi?id=736680
libs/gst/base/gstbasesrc.c