schroenc: Only enable framestats code with schro >= 1.0.9
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Mar 2010 21:26:14 +0000 (21:26 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Mar 2010 21:26:14 +0000 (21:26 +0000)
ext/schroedinger/gstschroenc.c

index 286a0b5..0a5dada 100644 (file)
@@ -764,7 +764,7 @@ gst_schro_enc_process (GstSchroEnc * schro_enc)
           /* FIXME This shouldn't happen */
           return GST_FLOW_ERROR;
         }
-
+#if SCHRO_CHECK_VERSION (1, 0, 9)
         {
           GstMessage *message;
           GstStructure *structure;
@@ -778,7 +778,7 @@ gst_schro_enc_process (GstSchroEnc * schro_enc)
           message = gst_message_new_element (GST_OBJECT (schro_enc), structure);
           gst_element_post_message (GST_ELEMENT (schro_enc), message);
         }
-
+#endif
 
         if (voidptr == NULL) {
           GST_DEBUG ("got eos");