rtpqdmdepay: remove pointless check
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 2 May 2014 13:09:02 +0000 (14:09 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 2 May 2014 13:09:02 +0000 (14:09 +0100)
Besides, the pointer was dereferenced earlier anyway.

Coverity 1139853

gst/rtp/gstrtpqdmdepay.c

index f854ab1..ba85018 100644 (file)
@@ -185,9 +185,7 @@ flush_data (GstRtpQDM2Depay * depay)
 
     gst_adapter_push (depay->adapter, buf);
 
-    if (pack->data) {
-      pack->data = NULL;
-    }
+    pack->data = NULL;
   }
 }