diff options
author | Jose Antonio Santos Cadenas <santoscadenas@gmail.com> | 2013-03-15 09:29:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2013-03-15 11:04:39 +0000 |
commit | ea2332c46626273b2c2fe36e1dee8e4eff2add48 (patch) | |
tree | a96b91c0e1f8cef60cfd32b3022f71aa93bc4dfb /ext/srtp | |
parent | 2347c4e711d8b8630fc2654b6910c69adf94f164 (diff) |
srtp: fix compilation warning returning NULL in case of error
https://bugzilla.gnome.org/show_bug.cgi?id=695897
Diffstat (limited to 'ext/srtp')
-rw-r--r-- | ext/srtp/gstsrtpenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/srtp/gstsrtpenc.c b/ext/srtp/gstsrtpenc.c index f45ad6e1a..6e6c4a15c 100644 --- a/ext/srtp/gstsrtpenc.c +++ b/ext/srtp/gstsrtpenc.c @@ -637,8 +637,9 @@ get_rtp_other_pad (GstPad * pad) return priv->sinkpad; else if (pad == priv->sinkpad) return priv->srcpad; - else - g_assert_not_reached (); + + g_assert_not_reached (); + return NULL; } /* Release a sink pad and it's linked source pad |