summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-08-04 23:15:36 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-08-04 19:14:43 -0400
commit3129396643937796b27325c70d12efec34c6045e (patch)
tree8ab8b6fd824d29abe5a18479fcb7ef79605a81cd /ext
parentbe714c7441ad4c5ec7f1162d1d659109623abbe9 (diff)
downloadgstreamer-plugins-bad-3129396643937796b27325c70d12efec34c6045e.tar.gz
rsvg: Don't leak a GstVideoCodecState
There's already the output_state variable with it, no need to call gst_video_decoder_get_output_state() and get a new ref. https://bugzilla.gnome.org/show_bug.cgi?id=753262
Diffstat (limited to 'ext')
-rw-r--r--ext/rsvg/gstrsvgdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c
index a17c93592..c29b947ca 100644
--- a/ext/rsvg/gstrsvgdec.c
+++ b/ext/rsvg/gstrsvgdec.c
@@ -203,8 +203,7 @@ gst_rsvg_decode_image (GstRsvgDec * rsvg, GstBuffer * buffer,
if (!gst_video_frame_map (&vframe,
- &gst_video_decoder_get_output_state (decoder)->info,
- frame->output_buffer, GST_MAP_READWRITE)) {
+ &output_state->info, frame->output_buffer, GST_MAP_READWRITE)) {
GST_ERROR_OBJECT (rsvg, "Failed to get SVG image");
g_object_unref (handle);
gst_video_codec_state_unref (output_state);