diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-29 16:48:33 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-29 16:48:33 +0000 |
commit | 3761fb69e6a878b5bb1d06fcbdde9d0572827f51 (patch) | |
tree | 45a7b02dba3afd5ac3b7355f16a457ed16558620 /ext/flac/gstflacdec.c | |
parent | e2e5d42fd3e690c2fbd3e20e7e8ae1c4589d452c (diff) |
ext/flac/gstflacdec.c: Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() ...
Original commit message from CVS:
* ext/flac/gstflacdec.c: (gst_flac_dec_write):
Fix 'xyz may be used uninitialized' compiler warnings caused
by broken g_assert_not_reached() macro in GLib-2.15.x and don't
abort() in any case but properly report the error.
Diffstat (limited to 'ext/flac/gstflacdec.c')
-rw-r--r-- | ext/flac/gstflacdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/flac/gstflacdec.c b/ext/flac/gstflacdec.c index 23fa79ce..4ad44f87 100644 --- a/ext/flac/gstflacdec.c +++ b/ext/flac/gstflacdec.c @@ -899,7 +899,9 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame, width = 32; break; default: - g_assert_not_reached (); + GST_ERROR_OBJECT (flacdec, "unsupported depth %d", depth); + ret = GST_FLOW_ERROR; + goto done; } if (!GST_PAD_CAPS (flacdec->srcpad)) { |