summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristofer Bjorkstrom <kristofb@axis.com>2019-02-18 15:24:18 +0100
committerSebastian Dröge <slomo@coaxion.net>2019-02-18 16:12:58 +0000
commit4bc906e87ebe13d186dbd834779d2028ca306764 (patch)
tree31ec89670cd4e21351fc1cadf43c49f1e9efaa94 /tests
parent0cdb3aa9b3b2c9002acd23b8ab09ba4f91ef2235 (diff)
rtspconnection: Fix GError set over the top of a previous GError
The function fill_bytes could sometimes return a value greater than zero and in the same time set the GError. Function read_bytes calls fill_bytes in a while loop. In the special case above it would call fill_bytes with error already set. Thus resulting in "GError set over the top of a previous GError". Solved this by clearing GError when return value is greater than zero. Actions are taken depending on error type by caller of read_bytes. Eg. with EWOULDBLOCK gst_rtsp_source_dispatch_read will try to read the missing bytes again (GST_RTSP_EINTR ) https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/445
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions