diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-10-09 17:11:11 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-10-09 17:12:45 -0400 |
commit | 0d19d5610ac05b27aab1af447165c3eca795ed84 (patch) | |
tree | c9f670ee2c518040e31f0383ff67e479027c24d8 /gst | |
parent | 958728fe7ca77b74a6b876b97f6d6e2ef877a840 (diff) | |
download | farstream-0d19d5610ac05b27aab1af447165c3eca795ed84.tar.gz |
rtpstream: Use the right variables in validation
Copy-paste error
Diffstat (limited to 'gst')
-rw-r--r-- | gst/fsrtpconference/fs-rtp-stream.c | 10 |
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; } |