Commit bcdeaa63 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

Fix 'xyz may be used uninitialized' compiler warnings caused by broken...

Fix 'xyz may be used uninitialized' compiler warnings caused by broken g_assert_not_reached() macro in GLib-2.15.x (i...

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.
parent 427ab08a
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):
......
......@@ -3734,7 +3734,9 @@ gst_avi_demux_loop (GstPad * pad)
}
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));
......
......@@ -1821,7 +1821,7 @@ gst_wavparse_chain (GstPad * pad, GstBuffer * buf)
goto done;
break;
default:
g_assert_not_reached ();
g_return_val_if_reached (GST_FLOW_ERROR);
}
done:
return ret;
......
......@@ -280,7 +280,7 @@ composite_pixel (GstXContext * xcontext, guchar * dest, guchar * src)
break;
default:
/* Should not reach here */
g_assert_not_reached ();
g_return_if_reached ();
}
/* possible optimisation:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment