bus: turn g_return_if_fail into g_assert.

This either must never happen (which makes sense in this case) and thus should
use assert() or we should use a traditional if (poll_data->message) return;
to avoid differnet behaviour of intenal api when compiling with
G_DISABLE_CHECKS.
This commit is contained in:
Stefan Kost 2010-03-04 23:36:50 +02:00
parent 1ca450ba5c
commit ba53eee64b

View file

@ -942,7 +942,7 @@ poll_func (GstBus * bus, GstMessage * message, GstBusPollData * poll_data)
type = GST_MESSAGE_TYPE (message);
if (type & poll_data->events) {
g_return_if_fail (poll_data->message == NULL);
g_assert (poll_data->message == NULL);
/* keep ref to message */
poll_data->message = gst_message_ref (message);
GST_DEBUG ("mainloop %p quit", poll_data->loop);