diff options
author | Stefan Kost <ensonic@users.sourceforge.net> | 2008-02-25 08:53:51 +0000 |
---|---|---|
committer | Stefan Kost <ensonic@users.sourceforge.net> | 2008-02-25 08:53:51 +0000 |
commit | 188190e0e88869d6c5e1097518715f90b5b74169 (patch) | |
tree | cb507b5f5c8be3394d20c70718d3b8c975109fd1 /gst/selector/gstoutputselector.c | |
parent | a49e89d51449d1b44b40e81afdb406a1406bac6a (diff) | |
download | gst-plugins-bad-188190e0e88869d6c5e1097518715f90b5b74169.tar.gz gst-plugins-bad-188190e0e88869d6c5e1097518715f90b5b74169.tar.bz2 gst-plugins-bad-188190e0e88869d6c5e1097518715f90b5b74169.zip |
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.
Diffstat (limited to 'gst/selector/gstoutputselector.c')
-rw-r--r-- | gst/selector/gstoutputselector.c | 8 |
1 files changed, 3 insertions, 5 deletions
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 */ |