projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab16989
)
output-selector: unref latest buffer also when resending has been disabled
author
Lasse Laukkanen
<ext-lasse.2.laukkanen@nokia.com>
Mon, 4 May 2009 09:29:54 +0000
(12:29 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 5 Jun 2009 07:00:29 +0000
(10:00 +0300)
gst/selector/gstoutputselector.c
patch
|
blob
|
history
diff --git
a/gst/selector/gstoutputselector.c
b/gst/selector/gstoutputselector.c
index
06443cf
..
5635ab7
100644
(file)
--- a/
gst/selector/gstoutputselector.c
+++ b/
gst/selector/gstoutputselector.c
@@
-388,11
+388,14
@@
gst_output_selector_chain (GstPad * pad, GstBuffer * buf)
/* Do the switch */
gst_output_selector_switch (osel);
}
+
+ if (osel->latest_buffer) {
+ gst_buffer_unref (osel->latest_buffer);
+ osel->latest_buffer = NULL;
+ }
if (osel->resend_latest) {
/* Keep reference to latest buffer to resend it after switch */
- if (osel->latest_buffer)
- gst_buffer_unref (osel->latest_buffer);
osel->latest_buffer = gst_buffer_ref (buf);
}