summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gst/fsrtpconference/fs-rtp-stream.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gst/fsrtpconference/fs-rtp-stream.c b/gst/fsrtpconference/fs-rtp-stream.c
index 1e707fc3..36088198 100644
--- a/gst/fsrtpconference/fs-rtp-stream.c
+++ b/gst/fsrtpconference/fs-rtp-stream.c
@@ -1295,31 +1295,31 @@ validate_srtp_parameters (GstStructure *parameters,
if ((tmp = gst_structure_get_string (parameters, "rtp-cipher")))
{
*srtp_cipher = parse_enum ("rtp-cipher", tmp, error);
- if (cipher == -1)
+ if (*srtp_cipher == -1)
return FALSE;
}
if ((tmp = gst_structure_get_string (parameters, "rtcp-cipher")))
{
*srtcp_cipher = parse_enum ("rtcp-cipher", tmp, error);
- if (cipher == -1)
+ if (*srtcp_cipher == -1)
return FALSE;
}
if ((tmp = gst_structure_get_string (parameters, "auth")))
{
auth = parse_enum ("rtp-auth", tmp, error);
- if (cipher == -1)
+ if (auth == -1)
return FALSE;
}
if ((tmp = gst_structure_get_string (parameters, "rtp-auth")))
{
*srtp_auth = parse_enum ("rtp-auth", tmp, error);
- if (cipher == -1)
+ if (*srtp_auth == -1)
return FALSE;
}
if ((tmp = gst_structure_get_string (parameters, "rtcp-auth")))
{
*srtcp_auth = parse_enum ("rtcp-auth", tmp, error);
- if (cipher == -1)
+ if (*srtcp_auth == -1)
return FALSE;
}