mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
rtp: Initialize adapter to NULL for early pipeline error
If gstreamer pipeline immediately returns error, adapter pointer would not be initialized and pa_rtp_recv may crash calling gst_object_unref() on it. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/615>
This commit is contained in:
parent
49b07edcaf
commit
1a575bb0a7
1 changed files with 1 additions and 1 deletions
|
|
@ -595,7 +595,7 @@ fail:
|
|||
int pa_rtp_recv(pa_rtp_context *c, pa_memchunk *chunk, pa_mempool *pool, uint32_t *rtp_tstamp, struct timeval *tstamp) {
|
||||
GstSample *sample = NULL;
|
||||
GstBufferList *buf_list;
|
||||
GstAdapter *adapter;
|
||||
GstAdapter *adapter = NULL;
|
||||
GstBuffer *buf;
|
||||
GstMapInfo info;
|
||||
GstClockTime timestamp = GST_CLOCK_TIME_NONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue