mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
amcvideoenc: Do not call gst_object_unref on GstCaps
https://bugzilla.gnome.org/show_bug.cgi?id=767298
This commit is contained in:
parent
9296b26095
commit
1ee15d1385
1 changed files with 3 additions and 3 deletions
|
@ -409,14 +409,14 @@ caps_from_amc_format (GstAmcFormat * amc_format)
|
||||||
unsupported_profile:
|
unsupported_profile:
|
||||||
GST_ERROR ("Unsupport amc profile id %d", amc_profile);
|
GST_ERROR ("Unsupport amc profile id %d", amc_profile);
|
||||||
g_free (mime);
|
g_free (mime);
|
||||||
gst_object_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
unsupported_level:
|
unsupported_level:
|
||||||
GST_ERROR ("Unsupport amc level id %d", amc_level);
|
GST_ERROR ("Unsupport amc level id %d", amc_level);
|
||||||
g_free (mime);
|
g_free (mime);
|
||||||
gst_object_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -1337,7 +1337,7 @@ gst_amc_video_enc_set_format (GstVideoEncoder * encoder,
|
||||||
|
|
||||||
quit:
|
quit:
|
||||||
if (allowed_caps)
|
if (allowed_caps)
|
||||||
gst_object_unref (allowed_caps);
|
gst_caps_unref (allowed_caps);
|
||||||
|
|
||||||
if (format)
|
if (format)
|
||||||
gst_amc_format_free (format);
|
gst_amc_format_free (format);
|
||||||
|
|
Loading…
Reference in a new issue