Commit 0a3fe31f authored by Vineeth TM's avatar Vineeth TM Committed by Thiago Santos

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
parent 7db376d0
...@@ -2545,7 +2545,8 @@ beach: ...@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment