appsrc: Correctly check if this is the first buffer that was queued
authorSebastian Dröge <sebastian@centricular.com>
Tue, 8 Jun 2021 10:05:46 +0000 (13:05 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 8 Jun 2021 10:05:46 +0000 (13:05 +0300)
commit0b9976ac467cf6b450dbeb20ed7e5e15d697b2eb
treeb3b7fd23ea30bddd10f10a3dc88c050afad963a3
parentd1fa1090833f02918f622274bfad3c1550c912f6
appsrc: Correctly check if this is the first buffer that was queued

By checking the queue length this would also count events and caps. We
already keep track of the number of buffers separately so just use that.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1197>
gst-libs/gst/app/gstappsrc.c