fsvalve: Only set passthrough to TRUE on newer versions of gst
authorOlivier Crete <olivier.crete@collabora.co.uk>
Wed, 21 Nov 2007 20:08:58 +0000 (20:08 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:51:09 +0000 (00:51 +0000)
20071121200858-3e2dc-b16cdeabbc3c0562c6fc7b11b9b9792c910f569e.gz

plugins/elements/gstvalve.c

index d05dbcc9524faa8e5fa5e47ba004416151e615aa..4ff7f347a9fdc6a56e51b07e06a14f5a4245af25 100644 (file)
@@ -139,7 +139,9 @@ gst_valve_init (GstValve *valve, GstValveClass *klass)
 
   valve->drop = 0;
 
+#if GST_VERSION_MINOR >= 10 &&  GST_VERSION_MICRO >= 13
   gst_base_transform_set_passthrough ((GstBaseTransform *)valve, TRUE);
+#endif
 
 }