GNOME Bugzilla – Bug 680181
Fix misleading GST_WARNING in gst_poll_add_fd_unlocked
Last modified: 2012-07-23 10:12:02 UTC
When calling gst_poll_add_fd_unlocked() twice for the same fd and fdset while having GST_DEBUG=3 I see this error: GST_POLL gstreamer/gst/gstpoll.c:767:gst_poll_add_fd_unlocked: 0x595240: couldn't find fd ! After looking through the code I observe that the message introduced by dc3fb58a904f25f87fd2c6b4501af773f202d2a9 is misleading, actually it ought to say that the fd has already been added.
Created attachment 219133 [details] [review] Patch improving misleading debug warning.
commit d24a5ecb933fd016de9cd6b863306d9bd2b6323e Author: Sebastian Rasmussen <sebrn@axis.com> Date: Wed Jul 18 17:03:45 2012 +0200 gstpoll: Improve warning message when re-adding fd to fdset Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680181