diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2016-06-06 12:38:45 -0400 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-06-06 17:53:01 +0100 |
commit | 1ee15d1385174f444dbfe19b6a8771d57efbc6fb (patch) | |
tree | a4ee9a3ff66e8bd01d1697261f74a574724ca47c /sys/androidmedia/gstamcvideoenc.c | |
parent | 9296b26095d2fce5b94f84ddc79221d5c0931a25 (diff) | |
download | gstreamer-plugins-bad-1ee15d1385174f444dbfe19b6a8771d57efbc6fb.tar.gz |
amcvideoenc: Do not call gst_object_unref on GstCaps
https://bugzilla.gnome.org/show_bug.cgi?id=767298
Diffstat (limited to 'sys/androidmedia/gstamcvideoenc.c')
-rw-r--r-- | sys/androidmedia/gstamcvideoenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/androidmedia/gstamcvideoenc.c b/sys/androidmedia/gstamcvideoenc.c index 5ef480bf8..136df4197 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); |