From 188190e0e88869d6c5e1097518715f90b5b74169 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 25 Feb 2008 08:53:51 +0000 Subject: gst/selector/gstinputselector.*: Added "select-all" property to make it work like aggregator in 0.8. Original commit message from CVS: * gst/selector/gstinputselector.c: * gst/selector/gstinputselector.h: Added "select-all" property to make it work like aggregator in 0.8. * gst/selector/gstoutputselector.c: Fix resend-latest behavoiur. * tests/check/Makefile.am: * tests/check/elements/.cvsignore: * tests/check/elements/selector.c: Add unit tests for selector. --- gst/selector/gstoutputselector.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gst/selector/gstoutputselector.c') diff --git a/gst/selector/gstoutputselector.c b/gst/selector/gstoutputselector.c index a60df6a9..f8ed8846 100644 --- a/gst/selector/gstoutputselector.c +++ b/gst/selector/gstoutputselector.c @@ -367,11 +367,9 @@ gst_output_selector_chain (GstPad * pad, GstBuffer * buf) } /* Keep reference to latest buffer to resend it after switch */ - if (osel->resend_latest) { - if (osel->latest_buffer) - gst_buffer_unref (osel->latest_buffer); - osel->latest_buffer = gst_buffer_ref (buf); - } + if (osel->latest_buffer) + gst_buffer_unref (osel->latest_buffer); + osel->latest_buffer = gst_buffer_ref (buf); /* Keep track of last stop and use it in NEWSEGMENT start after switching to a new src pad */ -- cgit v1.2.1