Original commit message from CVS:
* gst/avi/gstavidemux.c: (gst_avi_demux_loop):
* gst/wavparse/gstwavparse.c: (gst_wavparse_chain):
* sys/ximage/gstximagesrc.c: (composite_pixel):
Fix 'xyz may be used uninitialized' compiler warnings caused
by broken g_assert_not_reached() macro in GLib-2.15.x (it's
not really nice to abort in any case). Fixes #505745.
+2007-12-26 Tim-Philipp Müller <tim at centricular dot net>
+
+ * gst/avi/gstavidemux.c: (gst_avi_demux_loop):
+ * gst/wavparse/gstwavparse.c: (gst_wavparse_chain):
+ * sys/ximage/gstximagesrc.c: (composite_pixel):
+ Fix 'xyz may be used uninitialized' compiler warnings caused
+ by broken g_assert_not_reached() macro in GLib-2.15.x (it's
+ not really nice to abort in any case). Fixes #505745.
+
2007-12-18 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/elements/avisubtitle.c: (check_correct_buffer):
}
break;
default:
- g_assert_not_reached ();
+ GST_ERROR_OBJECT (avi, "unknown state %d", avi->state);
+ res = GST_FLOW_ERROR;
+ goto pause;
}
GST_LOG_OBJECT (avi, "state: %d res:%s", avi->state, gst_flow_get_name (res));
goto done;
break;
default:
- g_assert_not_reached ();
+ g_return_val_if_reached (GST_FLOW_ERROR);
}
done:
return ret;
break;
default:
/* Should not reach here */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
/* possible optimisation: