mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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
This commit is contained in:
parent
be714c7441
commit
3129396643
1 changed files with 1 additions and 2 deletions
|
@ -203,8 +203,7 @@ gst_rsvg_decode_image (GstRsvgDec * rsvg, GstBuffer * buffer,
|
||||||
|
|
||||||
|
|
||||||
if (!gst_video_frame_map (&vframe,
|
if (!gst_video_frame_map (&vframe,
|
||||||
&gst_video_decoder_get_output_state (decoder)->info,
|
&output_state->info, frame->output_buffer, GST_MAP_READWRITE)) {
|
||||||
frame->output_buffer, GST_MAP_READWRITE)) {
|
|
||||||
GST_ERROR_OBJECT (rsvg, "Failed to get SVG image");
|
GST_ERROR_OBJECT (rsvg, "Failed to get SVG image");
|
||||||
g_object_unref (handle);
|
g_object_unref (handle);
|
||||||
gst_video_codec_state_unref (output_state);
|
gst_video_codec_state_unref (output_state);
|
||||||
|
|
Loading…
Reference in a new issue