srtpdec: also check for "roc" in caps
authorAleix Conchillo FlaquƩ <aconchillo@gmail.com>
Fri, 15 Apr 2016 05:32:05 +0000 (22:32 -0700)
committerJosep Torra <n770galaxy@gmail.com>
Fri, 15 Apr 2016 13:37:32 +0000 (15:37 +0200)
commit73ebdb888e047b14ceea19ce1a0bbbeff0cd7b2a
tree78020d50649361d5d6cff383628e2f90a27844ad
parent8f853cfed59fb0a38c4e5b534ab7fbe22682ca9c
srtpdec: also check for "roc" in caps

Currently, gst_srtp_dec_sink_setcaps is happy if the "roc" field is not
provided in the caps. If it is not provided the stream will be properly
inserted in the hash table with a default "roc". Then, when the first
buffer arrives validate_buffer will find an existing stream in the hash
table and will not signal request-key, not allowing the user to provide
a "roc".

This patch expects "roc" in gst_srtp_dec_sink_setcaps, if not found a
request-key will be signaled and the user will be able to provide all
the srtp fields, including "roc".

https://bugzilla.gnome.org/show_bug.cgi?id=765079
ext/srtp/gstsrtpdec.c