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:
Vineeth TM 2015-07-31 13:31:56 +09:00 committed by Thiago Santos
parent 7db376d05e
commit 0a3fe31f26

View file

@ -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;