diff options
author | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2014-05-04 00:48:28 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@ocrete.ca> | 2014-05-04 00:48:28 -0400 |
commit | 3aec0fb8ec87299835987266fed208f5267bb000 (patch) | |
tree | 0bf600543921af1cab144158c51cb18f88ee102f /gst | |
parent | 64bfaf6af39957996ae1114767d1f674e246fd97 (diff) | |
download | farstream-3aec0fb8ec87299835987266fed208f5267bb000.tar.gz |
rtpsession: Check that there is either a blueprint or a profile
Having neither is always invalid!
Diffstat (limited to 'gst')
-rw-r--r-- | gst/fsrtpconference/fs-rtp-session.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/fsrtpconference/fs-rtp-session.c b/gst/fsrtpconference/fs-rtp-session.c index b40bab8e..5b5818bb 100644 --- a/gst/fsrtpconference/fs-rtp-session.c +++ b/gst/fsrtpconference/fs-rtp-session.c @@ -3194,6 +3194,12 @@ _create_codec_bin (const CodecAssociation *ca, const FsCodec *codec, *new_builder_hash, current_builder_hash, FS_CODEC_ARGS (ca->codec)); } + if (!ca->blueprint) { + g_set_error (error, FS_ERROR, FS_ERROR_INTERNAL, + "Codec Association has neither blueprint nor profile"); + return NULL; + } + return create_codec_bin_from_blueprint (codec, ca->blueprint, name, is_send, error); } |