amcvideoenc: Do not call gst_object_unref on GstCaps

https://bugzilla.gnome.org/show_bug.cgi?id=767298
This commit is contained in:
Xavier Claessens 2016-06-06 12:38:45 -04:00 committed by Tim-Philipp Müller
parent 9296b26095
commit 1ee15d1385

View file

@ -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);