downloadbuffer: return flow error on read error

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/814>
This commit is contained in:
Doug Nazar 2021-05-06 23:00:07 -04:00
parent 41ee497b90
commit 135f517ea3

View file

@ -868,7 +868,7 @@ read_error:
gst_buffer_unmap (buf, &info); gst_buffer_unmap (buf, &info);
if (*buffer == NULL) if (*buffer == NULL)
gst_buffer_unref (buf); gst_buffer_unref (buf);
return ret; return GST_FLOW_ERROR;
} }
} }