forked from enlightenment/efl
emotion gst1 module - remove extra unneded if's
not a bug, but don't need these found by PVS studio
This commit is contained in:
parent
08a69d2284
commit
2eb46302a2
|
@ -162,7 +162,7 @@ emotion_video_sink_dispose(GObject* object)
|
|||
}
|
||||
if (priv->last_buffer)
|
||||
{
|
||||
if (priv->last_buffer) gst_buffer_unref(priv->last_buffer);
|
||||
gst_buffer_unref(priv->last_buffer);
|
||||
priv->last_buffer = NULL;
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ emotion_video_sink_stop(GstBaseSink* base_sink)
|
|||
if (priv->mapped)
|
||||
gst_buffer_unmap(priv->last_buffer, &(priv->map_info));
|
||||
priv->mapped = EINA_FALSE;
|
||||
if (priv->last_buffer) gst_buffer_unref(priv->last_buffer);
|
||||
gst_buffer_unref(priv->last_buffer);
|
||||
priv->last_buffer = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue