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)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:54:05 +0000 (00:54 +0000)
commit0cb6c9230d15ca162c1d4449f864d6b47d110dd4
tree0ea360f6a8f796b344014452e71b241618ad3fee
parent974ca7713a41b93b4958f5fbef5f083b8f929497
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
plugins/elements/gstoutputselector.c