From 63348811d27d6cfbd305f98277c45907e0065230 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 7 Feb 2014 11:42:51 +0100 Subject: [PATCH] dvb-descriptor: Fix comparision we want to stop if one OR the other is NULL. --- gst-libs/gst/mpegts/gst-dvb-descriptor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/mpegts/gst-dvb-descriptor.c b/gst-libs/gst/mpegts/gst-dvb-descriptor.c index fd46555df2..761b29654c 100644 --- a/gst-libs/gst/mpegts/gst-dvb-descriptor.c +++ b/gst-libs/gst/mpegts/gst-dvb-descriptor.c @@ -378,7 +378,7 @@ guint gst_mpegts_descriptor_parse_dvb_teletext_nb (const GstMpegTsDescriptor * descriptor) { - if (descriptor == NULL && descriptor->data == NULL) + if (descriptor == NULL || descriptor->data == NULL) return 0; return descriptor->length / 5;