gstreamer/subprojects/gst-plugins-base/gst-libs/gst/rtsp
Max Romanov 09257b391c rtspconnection: Handle invalid argument properly
In case when conn->input_stream is NULL and glib was built with
"glib_checks" enabled, g_pollable_input_stream_read_nonblocking()
returns -1, but does not set the "err".

The call stack:
  read_bytes() ->
    fill_bytes() ->
      fill_raw_bytes()

The return value -1 passed up to read_bytes() and incorrectly
processed there after "error:" label.

This changes the return value to EINVAL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7210>
2024-08-06 03:50:34 +00:00
..
gstrtsp.h
gstrtspconnection.c rtspconnection: Handle invalid argument properly 2024-08-06 03:50:34 +00:00
gstrtspconnection.h
gstrtspdefs.c
gstrtspdefs.h
gstrtspextension.c
gstrtspextension.h
gstrtspmessage.c
gstrtspmessage.h
gstrtsprange.c
gstrtsprange.h
gstrtsptransport.c realmedia: remove RealServer RTSP extension, RDT handling and PNM source 2024-02-13 11:44:29 +00:00
gstrtsptransport.h
gstrtspurl.c
gstrtspurl.h
meson.build
rtsp-prelude.h
rtsp.h