mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +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);
|
||||
|
||||
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
|
||||
*deadend_details = NULL;
|
||||
|
||||
|
|
Loading…
Reference in a new issue