playbin2: always unref the combiner sinkpad when removing the srcpad
authorThiago Santos <thiagoss@osg.samsung.com>
Wed, 10 Dec 2014 16:23:23 +0000 (13:23 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 10 Dec 2014 16:36:37 +0000 (13:36 -0300)
commit7e801a5f26f5a297b795f83d18d178c5ace42cf7
treea6bb3fb7abf19a47fe08e590e58e07561a12f211
parent903ba195933c0cf11e5db07000f6d0f99e60a4e0
playbin2: always unref the combiner sinkpad when removing the srcpad

Create a function to do the pad cleanup of the GstSourceCombine struct
and use it to not forget to also cleanup the sink pad and fix a memory
leak.

https://bugzilla.gnome.org/show_bug.cgi?id=741198
gst/playback/gstplaybin2.c