outputselector: Avoid losing the last_buffer when switching
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 17 Sep 2010 12:52:12 +0000 (09:52 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Mon, 22 Nov 2010 20:34:02 +0000 (17:34 -0300)
commit8d5cfc6511ca986f1a0511bfd28c5b4209aca803
tree94a44c40bb181c02b083514f38a697f7b502cd5c
parent0451adeabd9ffb443795055295655fbe6347fe3d
outputselector: Avoid losing the last_buffer when switching

This patch makes outputselector take an extra ref when pushing
the last_buffer to avoid it losing it during the switch function.

This makes resend-latest properly work if the active-pad is changed
during the switch function buffer pushing (on a pad probe, for example).

https://bugzilla.gnome.org/show_bug.cgi?id=629917
gst/selector/gstoutputselector.c