mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
[MOVED FROM GST-P-FARSIGHT] Make the valve element work with gst < 0.10.13
20071026223749-3e2dc-18f685a4e45fbdce677ac777586876fc719d7222.gz
This commit is contained in:
parent
a37867ecf0
commit
17639a3e82
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue