dvbsrc: fix unconditional use of SYS_DVBC_ANNEX_C
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Mon, 5 Dec 2016 23:56:36 +0000 (15:56 -0800)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Tue, 6 Dec 2016 00:18:54 +0000 (16:18 -0800)
It is not defined for < v5 minor 6

sys/dvb/gstdvbsrc.c

index 7064cfae98e11ec6c959873fa2758a027ae9d86b..3317eca9fc956c5a5de8d4fcad3c30deb9c71e5d 100644 (file)
@@ -1746,13 +1746,14 @@ gst_dvbsrc_open_frontend (GstDvbSrc * object, gboolean writable)
     gst_structure_set (adapter_structure, "turbo", G_TYPE_STRING, "TURBO",
         NULL);
   }
-
+#if HAVE_V5_MINOR(6)
   if (gst_dvbsrc_check_delsys (&dvb_prop[0], SYS_DVBC_ANNEX_C)) {
     object->supported_delsys = g_list_append (object->supported_delsys,
         GINT_TO_POINTER (SYS_DVBC_ANNEX_C));
     gst_structure_set (adapter_structure, "dvb-c-c", G_TYPE_STRING,
         "DVB-C ANNEX C", NULL);
   }
+#endif
 
   GST_TRACE_OBJECT (object, "%s description: %" GST_PTR_FORMAT, adapter_name,
       adapter_structure);