diff options
author | Olivier Crete <olivier.crete@collabora.co.uk> | 2007-10-26 22:37:49 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-17 19:29:59 +0100 |
commit | 17639a3e824ff00133c1cad81871e52b4a667021 (patch) | |
tree | 5a7909b9f0976244376e1a5ff2af47f63c234293 /gst/valve | |
parent | a37867ecf08b6f981253afdeb6660f5da3ce869f (diff) | |
download | gst-plugins-bad-17639a3e824ff00133c1cad81871e52b4a667021.tar.gz gst-plugins-bad-17639a3e824ff00133c1cad81871e52b4a667021.tar.bz2 gst-plugins-bad-17639a3e824ff00133c1cad81871e52b4a667021.zip |
[MOVED FROM GST-P-FARSIGHT] Make the valve element work with gst < 0.10.13
20071026223749-3e2dc-18f685a4e45fbdce677ac777586876fc719d7222.gz
Diffstat (limited to 'gst/valve')
-rw-r--r-- | gst/valve/gstvalve.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/valve/gstvalve.c b/gst/valve/gstvalve.c index feeb22fb..e33a716f 100644 --- a/gst/valve/gstvalve.c +++ b/gst/valve/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; |