summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2007-10-26 22:37:49 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-31 00:51:09 +0000
commit1a47ba87dc33094b39c890abd0a6dca5f7e2c211 (patch)
treedd2081e0e7a074e7d73dc85a56b17626cbca4323
parent32b5931ae2af66841e9d5a3db75f714ccf23a3af (diff)
fsvalve: Make the valve element work with gst < 0.10.13
-rw-r--r--plugins/elements/gstvalve.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/elements/gstvalve.c b/plugins/elements/gstvalve.c
index feeb22fb00..e33a716fdd 100644
--- a/plugins/elements/gstvalve.c
+++ b/plugins/elements/gstvalve.c
@@ -197,8 +197,12 @@ gst_valve_transform_ip (GstBaseTransform *trans, GstBuffer *buf)
GstFlowReturn ret = GST_FLOW_OK;
GST_OBJECT_LOCK (GST_OBJECT (trans));
- if (valve->drop)
+ if (valve->drop) {
+#if GST_VERSION_MAJOR >= 10 && GST_VERSION_MICRO >= 13
ret = GST_BASE_TRANSFORM_FLOW_DROPPED;
+#endif
+ buf = NULL;
+ }
GST_OBJECT_UNLOCK (GST_OBJECT (trans));
return ret;