fsvalve: Compare minor, not major

20071121181729-3e2dc-a5997c3b7f5c86966370969714facf8ee242659d.gz
This commit is contained in:
Olivier Crete 2007-11-21 18:17:29 +00:00 committed by Tim-Philipp Müller
parent 1a47ba87dc
commit 51af047576

View file

@ -134,8 +134,7 @@ gst_valve_class_init (GstValveClass *klass)
}
static void
gst_valve_init (GstValve *valve,
GstValveClass *klass)
gst_valve_init (GstValve *valve, GstValveClass *klass)
{
valve->drop = 0;
@ -198,7 +197,7 @@ gst_valve_transform_ip (GstBaseTransform *trans, GstBuffer *buf)
GST_OBJECT_LOCK (GST_OBJECT (trans));
if (valve->drop) {
#if GST_VERSION_MAJOR >= 10 && GST_VERSION_MICRO >= 13
#if GST_VERSION_MINOR >= 10 && GST_VERSION_MICRO >= 13
ret = GST_BASE_TRANSFORM_FLOW_DROPPED;
#endif
buf = NULL;