• 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
..
allocators Loading commit data...
app Loading commit data...
audio Loading commit data...
fft Loading commit data...
gl Loading commit data...
pbutils Loading commit data...
riff Loading commit data...
rtp Loading commit data...
rtsp Loading commit data...
sdp Loading commit data...
tag Loading commit data...
video Loading commit data...
Makefile.am Loading commit data...
gettext.h Loading commit data...
glib-compat-private.h Loading commit data...
gst-i18n-app.h Loading commit data...
gst-i18n-plugin.h Loading commit data...
meson.build Loading commit data...