From 1ee15d1385174f444dbfe19b6a8771d57efbc6fb Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 6 Jun 2016 12:38:45 -0400 Subject: [PATCH] amcvideoenc: Do not call gst_object_unref on GstCaps https://bugzilla.gnome.org/show_bug.cgi?id=767298 --- sys/androidmedia/gstamcvideoenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/androidmedia/gstamcvideoenc.c b/sys/androidmedia/gstamcvideoenc.c index 5ef480bf8d..136df41978 100644 --- a/sys/androidmedia/gstamcvideoenc.c +++ b/sys/androidmedia/gstamcvideoenc.c @@ -409,14 +409,14 @@ caps_from_amc_format (GstAmcFormat * amc_format) unsupported_profile: GST_ERROR ("Unsupport amc profile id %d", amc_profile); g_free (mime); - gst_object_unref (caps); + gst_caps_unref (caps); return NULL; unsupported_level: GST_ERROR ("Unsupport amc level id %d", amc_level); g_free (mime); - gst_object_unref (caps); + gst_caps_unref (caps); return NULL; } @@ -1337,7 +1337,7 @@ gst_amc_video_enc_set_format (GstVideoEncoder * encoder, quit: if (allowed_caps) - gst_object_unref (allowed_caps); + gst_caps_unref (allowed_caps); if (format) gst_amc_format_free (format);