From 88879654dfb19e2dd59abe201cf794a49a27e91d Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 9 Apr 2014 17:10:06 +0100 Subject: [PATCH] smoothstreaming: remove unnecessary check 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 4b1e4dd9f4..aa74164129 100644 --- a/ext/smoothstreaming/gstmssdemux.c +++ b/ext/smoothstreaming/gstmssdemux.c @@ -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);