mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
module-rtp-source: fix crash on stream deletion
This commit is contained in:
parent
991e3928d4
commit
6581d4ee2a
1 changed files with 3 additions and 1 deletions
|
|
@ -18,6 +18,7 @@
|
||||||
#include <spa/utils/hook.h>
|
#include <spa/utils/hook.h>
|
||||||
#include <spa/utils/result.h>
|
#include <spa/utils/result.h>
|
||||||
#include <spa/utils/ringbuffer.h>
|
#include <spa/utils/ringbuffer.h>
|
||||||
|
#include <spa/utils/defs.h>
|
||||||
#include <spa/utils/dll.h>
|
#include <spa/utils/dll.h>
|
||||||
#include <spa/utils/json.h>
|
#include <spa/utils/json.h>
|
||||||
#include <spa/param/audio/format-utils.h>
|
#include <spa/param/audio/format-utils.h>
|
||||||
|
|
@ -164,7 +165,8 @@ on_rtp_io(void *data, int fd, uint32_t mask)
|
||||||
if (len < 12)
|
if (len < 12)
|
||||||
goto short_packet;
|
goto short_packet;
|
||||||
|
|
||||||
rtp_stream_receive_packet(impl->stream, buffer, len);
|
if (SPA_LIKELY(impl->stream))
|
||||||
|
rtp_stream_receive_packet(impl->stream, buffer, len);
|
||||||
|
|
||||||
impl->receiving = true;
|
impl->receiving = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue