mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 10:34:11 +00:00
Revert "bus: Check if pending messages are in the queue"
This reverts commit bd1c400114
.
This commit is contained in:
parent
6a5f8a1b2d
commit
2cb3e52351
1 changed files with 2 additions and 5 deletions
|
@ -694,10 +694,8 @@ typedef struct
|
|||
static gboolean
|
||||
gst_bus_source_prepare (GSource * source, gint * timeout)
|
||||
{
|
||||
GstBusSource *bsrc = (GstBusSource *) source;
|
||||
*timeout = -1;
|
||||
|
||||
return gst_bus_have_pending (bsrc->bus);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -705,8 +703,7 @@ gst_bus_source_check (GSource * source)
|
|||
{
|
||||
GstBusSource *bsrc = (GstBusSource *) source;
|
||||
|
||||
return gst_bus_have_pending (bsrc->bus) | (bsrc->bus->priv->
|
||||
pollfd.revents & (G_IO_IN | G_IO_HUP | G_IO_ERR));
|
||||
return bsrc->bus->priv->pollfd.revents & (G_IO_IN | G_IO_HUP | G_IO_ERR);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue