smoothstreaming: remove unnecessary check
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 16:10:06 +0000 (17:10 +0100)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 9 Apr 2014 16:10:06 +0000 (17:10 +0100)
The function is static, the only call site passes a non NULL
pointer, and the pointer is dereferenced before anyway.

Coverity 1139839

ext/smoothstreaming/gstmssdemux.c

index 4b1e4dd..aa74164 100644 (file)
@@ -1060,7 +1060,7 @@ gst_mss_demux_stream_download_fragment (GstMssDemuxStream * stream,
   g_object_unref (fragment);
 
   after_download = g_get_real_time ();
-  if (_buffer) {
+  {
 #ifndef GST_DISABLE_GST_DEBUG
     guint64 bitrate = (8 * gst_buffer_get_size (buffer) * 1000000LLU) /
         (after_download - before_download);