playbin: Don't ref_sink() the sinks twice
authorshakin chou <shakin@outlook.com>
Fri, 3 Nov 2017 03:39:54 +0000 (11:39 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 7 Nov 2017 08:32:34 +0000 (10:32 +0200)
commit2ec51ef998caa7530ff2caf8c7025b883d7f6f04
treee8e4f33599346ab1f3e3f9b91097366e4a53919f
parent5e373936bbdaa7a01e5ae140b819f8fab5a2662d
playbin: Don't ref_sink() the sinks twice

Since we're already sunk floating reference, we shouldn't call ref_sink
again, which increases the ref_count and cause leaks.

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