• Sebastian Dröge's avatar
    rtspsrc: Use a mutex for protecting against concurrent send/receives · 4c7fad2d
    Sebastian Dröge authored
    We currently send data to the RTSP connection from multiple threads:
    whenever a command is to be handled and whenever RTCP is generated. This
    can cause data corruption or worse if both happen at the same time.
    
    As such, protect gst_rtsp_connection_send() and gst_rtsp_connection_receive()
    calls with a mutex. While this means that we hold a mutex during the IO
    operation, this is not actually a problem as the IO operation can be
    interrupted (gst_rtsp_connection_flush()) at any time and is blocking by
    itself anyway.
    4c7fad2d
Name
Last commit
Last update
common @ 48a5d85e Loading commit data...
docs Loading commit data...
ext Loading commit data...
gst Loading commit data...
gst-libs/gst Loading commit data...
hooks Loading commit data...
m4 Loading commit data...
pkgconfig Loading commit data...
po Loading commit data...
sys Loading commit data...
tests Loading commit data...
.gitignore 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...
config.h.meson Loading commit data...
configure.ac Loading commit data...
gst-plugins-good.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...