diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/fsrtpconference/fs-rtp-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c index 8a20180f..a465cfa0 100644 --- a/gst/fsrtpconference/fs-rtp-session.c +++ b/gst/fsrtpconference/fs-rtp-session.c @@ -1167,7 +1167,7 @@ _rtpbin_request_encoder (GstElement *rtpbin, guint session_id, { FsRtpSession *self = FS_RTP_SESSION (user_data); - if (self->id == session_id) { + if (self->id == session_id && self->priv->srtpenc) { return gst_object_ref (self->priv->srtpenc); } else { return NULL; @@ -1180,7 +1180,7 @@ _rtpbin_request_decoder (GstElement *rtpbin, guint session_id, { FsRtpSession *self = FS_RTP_SESSION (user_data); - if (self->id == session_id) + if (self->id == session_id && self->priv->srtpdec) return gst_object_ref (self->priv->srtpdec); else return NULL; |