mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
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:
parent
1ca450ba5c
commit
ba53eee64b
1 changed files with 1 additions and 1 deletions
|
@ -942,7 +942,7 @@ poll_func (GstBus * bus, GstMessage * message, GstBusPollData * poll_data)
|
||||||
type = GST_MESSAGE_TYPE (message);
|
type = GST_MESSAGE_TYPE (message);
|
||||||
|
|
||||||
if (type & poll_data->events) {
|
if (type & poll_data->events) {
|
||||||
g_return_if_fail (poll_data->message == NULL);
|
g_assert (poll_data->message == NULL);
|
||||||
/* keep ref to message */
|
/* keep ref to message */
|
||||||
poll_data->message = gst_message_ref (message);
|
poll_data->message = gst_message_ref (message);
|
||||||
GST_DEBUG ("mainloop %p quit", poll_data->loop);
|
GST_DEBUG ("mainloop %p quit", poll_data->loop);
|
||||||
|
|
Loading…
Reference in a new issue