summaryrefslogtreecommitdiffstats
path: root/gst/selector/gstoutputselector.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/selector/gstoutputselector.c')
-rw-r--r--gst/selector/gstoutputselector.c8
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 */