videoaggregator: Do not mix the same buffer twice when EOS.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 7 Apr 2017 16:49:52 +0000 (18:49 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 7 Apr 2017 16:55:54 +0000 (18:55 +0200)
commita7c46e4a08cf1134f67dd4dfb5e416394ed4c524
tree624ec3f22678356bc4a71f706b5ffc1378b89a4f
parent7ac883cebfe9828f94c5693c55247065cc61c4f6
videoaggregator: Do not mix the same buffer twice when EOS.

When entering this code path, we know that:

We received EOS on this pad.
We consumed all its buffers.

In any case, we want to replace vaggpad->buffer with NULL,
otherwise we will end up mixing the same buffer twice.

https://bugzilla.gnome.org/show_bug.cgi?id=781037
gst-libs/gst/video/gstvideoaggregator.c