vkencoder-private: don't check twice for encoder parameter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7354>
This commit is contained in:
Víctor Manuel Jáquez Leal 2024-08-12 16:58:27 +02:00 committed by GStreamer Marge Bot
parent d81186cbfc
commit e5f40b65f2

View file

@ -562,12 +562,9 @@ gst_vulkan_encoder_stop (GstVulkanEncoder * self)
{
GstVulkanEncoderPrivate *priv;
if (!self)
return TRUE;
g_return_val_if_fail (GST_IS_VULKAN_ENCODER (self), FALSE);
priv = gst_vulkan_encoder_get_instance_private (self);
priv = gst_vulkan_encoder_get_instance_private (self);
if (!priv->started)
return TRUE;