gstreamer/ext/speex
Tim-Philipp Müller f325935314 pulse, speexenc, rtpgsmpay: don't use g_assert() for error handling
Don't use g_assert() for error handling, even if they're highly unlikely.
Either we *know* that something can't happen, in which case we
should just not handle it, or we think something can happen, but it is
very very unlikely that it will ever happen, in which case we should
handle it like any other error instead of asserting.

g_assert() is best left for conditions we have control of, like checking
internal consistency of our code, not checking return values of external
code.

Fixes a bunch of warnings when compiling with -DG_DISABLE_ASSERT:
gstrtpgsmpay.c: In function 'gst_rtp_gsm_pay_handle_buffer':
gstrtpgsmpay.c:130:17: warning: variable 'rtpgsmpay' set but not used
gstspeexenc.c: In function 'gst_speex_enc_encode':
gstspeexenc.c:904:19: warning: variable 'written' set but not used
pulsesink.c: In function 'gst_pulsesink_change_state':
pulsesink.c:2725:9: warning: variable 'res' set but not used
pulsesrc.c: In function 'gst_pulsesrc_change_state':
pulsesrc.c:1253:7: warning: variable 'e' set but not used
2011-04-16 18:15:43 +01:00
..
gstspeex.c Add RANKS for various encoders and muxers 2009-05-07 18:10:08 +01:00
gstspeexdec.c speexdec: Get and use streamheader from the caps if possible 2011-03-24 09:00:32 +01:00
gstspeexdec.h speexdec: Get and use streamheader from the caps if possible 2011-03-24 09:00:32 +01:00
gstspeexenc.c pulse, speexenc, rtpgsmpay: don't use g_assert() for error handling 2011-04-16 18:15:43 +01:00
gstspeexenc.h speexenc: remove unused defines 2010-04-08 13:40:09 +03:00
Makefile.am build: Makefile.am cleanups 2010-03-18 21:34:24 +00:00