gldownload: Refactor download mode selection
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Nov 2019 01:02:09 +0000 (20:02 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Nov 2019 22:01:23 +0000 (17:01 -0500)
commita09674dd6d86ae9d4b8200002522177b801f3d51
tree9215aa9ee7b7cb62be1952e0badb9556bba0698f
parent9870783f0158efc6573c5ae6eabafafdf981496e
gldownload: Refactor download mode selection

This introduces an enum in order to cleanup how we select the
transfer mode. It also fixes the case where we callback to PBO but
we didn't execute the PBO. That was not causing any issue, just that
the processing latency would be delayed to the next element, which
can be confusing.
ext/gl/gstgldownloadelement.c
ext/gl/gstgldownloadelement.h