mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
55c961a4dc
Previously it was possible that a shared media was just in the process of being unprepared because the last client disappeared, while another client retrieved it from the cache and then tried to use it. Unless the media was reusable this would've then failed unnecessarily. To avoid this it is necessary to lock the media directly in gst_rtsp_media_factory_construct() and return a locked media. After locking the cached media it is necessary to check if the media was ever unprepared or is actually reusable and based on that either reuse it or create a new media. This minimally changes the gst_rtsp_media_factory_construct() API to always return a locked media, and adds a new gst_rtsp_media_can_be_shared() function to check if a media can actually be shared in practice. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4606> |
||
---|---|---|
.. | ||
meson.build | ||
rtsp-address-pool.c | ||
rtsp-address-pool.h | ||
rtsp-auth.c | ||
rtsp-auth.h | ||
rtsp-client.c | ||
rtsp-client.h | ||
rtsp-context.c | ||
rtsp-context.h | ||
rtsp-latency-bin.c | ||
rtsp-latency-bin.h | ||
rtsp-media-factory-uri.c | ||
rtsp-media-factory-uri.h | ||
rtsp-media-factory.c | ||
rtsp-media-factory.h | ||
rtsp-media.c | ||
rtsp-media.h | ||
rtsp-mount-points.c | ||
rtsp-mount-points.h | ||
rtsp-onvif-client.c | ||
rtsp-onvif-client.h | ||
rtsp-onvif-media-factory.c | ||
rtsp-onvif-media-factory.h | ||
rtsp-onvif-media.c | ||
rtsp-onvif-media.h | ||
rtsp-onvif-server.c | ||
rtsp-onvif-server.h | ||
rtsp-params.c | ||
rtsp-params.h | ||
rtsp-permissions.c | ||
rtsp-permissions.h | ||
rtsp-sdp.c | ||
rtsp-sdp.h | ||
rtsp-server-internal.h | ||
rtsp-server-object.h | ||
rtsp-server-prelude.h | ||
rtsp-server.c | ||
rtsp-server.h | ||
rtsp-session-media.c | ||
rtsp-session-media.h | ||
rtsp-session-pool.c | ||
rtsp-session-pool.h | ||
rtsp-session.c | ||
rtsp-session.h | ||
rtsp-stream-transport.c | ||
rtsp-stream-transport.h | ||
rtsp-stream.c | ||
rtsp-stream.h | ||
rtsp-thread-pool.c | ||
rtsp-thread-pool.h | ||
rtsp-token.c | ||
rtsp-token.h |