• Kristofer Bjorkstrom's avatar
    rtspconnection: Fix GError set over the top of a previous GError · 4bc906e8
    Kristofer Bjorkstrom authored
    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 )
    
    #445
    4bc906e8
Name
Last commit
Last update
common @ 59cb6781 Loading commit data...
docs Loading commit data...
ext Loading commit data...
gst Loading commit data...
gst-libs Loading commit data...
hooks Loading commit data...
m4 Loading commit data...
pkgconfig Loading commit data...
po Loading commit data...
subprojects Loading commit data...
sys Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.static-linking Loading commit data...
RELEASE Loading commit data...
REQUIREMENTS Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gst-plugins-base.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...