summaryrefslogtreecommitdiff
path: root/ext/srtp
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2013-03-15 09:29:42 +0100
committerTim-Philipp Müller <tim@centricular.net>2013-03-15 11:04:39 +0000
commitea2332c46626273b2c2fe36e1dee8e4eff2add48 (patch)
treea96b91c0e1f8cef60cfd32b3022f71aa93bc4dfb /ext/srtp
parent2347c4e711d8b8630fc2654b6910c69adf94f164 (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.c5
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