adaptivedemux2/downloadhelper: Ignore spurious read failure
authorJan Schmidt <jan@centricular.com>
Thu, 13 Oct 2022 19:17:00 +0000 (06:17 +1100)
committerJan Schmidt <jan@centricular.com>
Fri, 4 Nov 2022 16:24:26 +0000 (03:24 +1100)
commit46517d5aca244f91114470fadfc25c0a65b3e36a
tree175bc92fe033cfeac21220e4bbc7b6d0db232a4c
parent1751f555f2e96f3b046d9ecb9404f22d246d2b3f
adaptivedemux2/downloadhelper: Ignore spurious read failure

Sometimes g_input_stream_read_all_finish() can return
0 bytes, but still succeed (return TRUE) and have more
data available later. Only finish the transfer
if it returns 0 bytes *and* FALSE with no error.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3314>
subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c