summaryrefslogtreecommitdiff
path: root/gst/fsrtpconference/fs-rtp-stream.h
diff options
context:
space:
mode:
authorFabrice Bellet <fabrice@bellet.info>2017-05-23 16:06:47 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-10-31 12:12:26 +0000
commita7de59c359349b47419880699b2e48e132eec5bb (patch)
tree0336dc3a0840af2863eb884d1542ae0cd70d455b /gst/fsrtpconference/fs-rtp-stream.h
parent73625a038f308160375bef5ded796fae1a903265 (diff)
downloadfarstream-a7de59c359349b47419880699b2e48e132eec5bb.tar.gz
rtp: fix a double locking issue on the session
The session value used in fs_rtp_stream_add_substream_unlock(), taken from the stream struct may be null, while the session value from fs_rtp_session_new_recv_pad() is not. However these two function depend on the same session value to properly lock and unlock it: the first function will unlock the session previously locked by the second function.
Diffstat (limited to 'gst/fsrtpconference/fs-rtp-stream.h')
-rw-r--r--gst/fsrtpconference/fs-rtp-stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/fsrtpconference/fs-rtp-stream.h b/gst/fsrtpconference/fs-rtp-stream.h
index a4b3fb23..86674c3b 100644
--- a/gst/fsrtpconference/fs-rtp-stream.h
+++ b/gst/fsrtpconference/fs-rtp-stream.h
@@ -117,6 +117,7 @@ FsRtpStream *fs_rtp_stream_new (FsRtpSession *session,
gboolean fs_rtp_stream_add_substream_unlock (FsRtpStream *stream,
FsRtpSubStream *substream,
+ FsRtpSession *session,
GError **error);
void