dvb-descriptor: Fix comparision

we want to stop if one OR the other is NULL.
This commit is contained in:
Edward Hervey 2014-02-07 11:42:51 +01:00
parent dc968163da
commit 63348811d2

View file

@ -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;