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;