mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
decodebin: fix deadend_details string leak
deadend_details need not be returned when the pad is not a deadend. Hence checking if res value is TRUE and clearing the string instead of passing it on https://bugzilla.gnome.org/show_bug.cgi?id=753088
This commit is contained in:
parent
7db376d05e
commit
0a3fe31f26
1 changed files with 2 additions and 1 deletions
|
@ -2545,7 +2545,8 @@ beach:
|
||||||
gst_object_unref (mqpad);
|
gst_object_unref (mqpad);
|
||||||
|
|
||||||
if (error_details)
|
if (error_details)
|
||||||
*deadend_details = g_string_free (error_details, (error_details->len == 0));
|
*deadend_details = g_string_free (error_details, (error_details->len == 0
|
||||||
|
|| res));
|
||||||
else
|
else
|
||||||
*deadend_details = NULL;
|
*deadend_details = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue