decodebin: fix deadend_details string leak
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 31 Jul 2015 04:31:56 +0000 (13:31 +0900)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 5 Aug 2015 17:33:35 +0000 (14:33 -0300)
commit0a3fe31f26d254a9570eb01f8e61468ba3014d53
treedec7ad73dd91c435f1a033d2fe5932e9ec7038a9
parent7db376d05ed5ee16af8eda18032a4b70b8a8ad40
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
gst/playback/gstdecodebin2.c