summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:46:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-07-29 10:56:53 +0900
commit2eb46302a263c900b78d1a83ff0a2124a4ad3915 (patch)
treeadfeedb3a2333bae128aa7c6b4a1e745c955a2d6
parent08a69d228487a2356df3919a68fc749c2a696258 (diff)
emotion gst1 module - remove extra unneded if's
not a bug, but don't need these found by PVS studio
-rw-r--r--src/modules/emotion/gstreamer1/emotion_sink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/emotion/gstreamer1/emotion_sink.c b/src/modules/emotion/gstreamer1/emotion_sink.c
index eaa7d77b6d..a4f768cd27 100644
--- a/src/modules/emotion/gstreamer1/emotion_sink.c
+++ b/src/modules/emotion/gstreamer1/emotion_sink.c
@@ -162,7 +162,7 @@ emotion_video_sink_dispose(GObject* object)
162 } 162 }
163 if (priv->last_buffer) 163 if (priv->last_buffer)
164 { 164 {
165 if (priv->last_buffer) gst_buffer_unref(priv->last_buffer); 165 gst_buffer_unref(priv->last_buffer);
166 priv->last_buffer = NULL; 166 priv->last_buffer = NULL;
167 } 167 }
168 168
@@ -264,7 +264,7 @@ emotion_video_sink_stop(GstBaseSink* base_sink)
264 if (priv->mapped) 264 if (priv->mapped)
265 gst_buffer_unmap(priv->last_buffer, &(priv->map_info)); 265 gst_buffer_unmap(priv->last_buffer, &(priv->map_info));
266 priv->mapped = EINA_FALSE; 266 priv->mapped = EINA_FALSE;
267 if (priv->last_buffer) gst_buffer_unref(priv->last_buffer); 267 gst_buffer_unref(priv->last_buffer);
268 priv->last_buffer = NULL; 268 priv->last_buffer = NULL;
269 } 269 }
270 270