mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
poll: Warn if the return value of gst_poll_read_control() is unused
This might fail even under correct usage, e.g. if read_control() is called from another thread before write_control() finished in another. It has to be retried then, or other measures have to be taken, depending on how it is used by the surrounding code. https://bugzilla.gnome.org/show_bug.cgi?id=750397
This commit is contained in:
parent
cd06aea103
commit
0bfc9fb212
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ void gst_poll_restart (GstPoll *set);
|
||||||
void gst_poll_set_flushing (GstPoll *set, gboolean flushing);
|
void gst_poll_set_flushing (GstPoll *set, gboolean flushing);
|
||||||
|
|
||||||
gboolean gst_poll_write_control (GstPoll *set);
|
gboolean gst_poll_write_control (GstPoll *set);
|
||||||
gboolean gst_poll_read_control (GstPoll *set);
|
gboolean gst_poll_read_control (GstPoll *set) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue