poll: Fix compiler warning about constness

passing argument 1 of 'g_mutex_lock' discards 'const' qualifier from pointer target type
passing argument 1 of 'g_mutex_unlock' discards 'const' qualifier from pointer target type
This commit is contained in:
Sebastian Dröge 2012-10-18 15:31:17 +02:00
parent 28604c197b
commit 3690f9a830

View file

@ -271,7 +271,7 @@ find_index (GArray * array, GstPollFD * fd)
#if !defined(HAVE_PPOLL) && defined(HAVE_POLL)
/* check if all file descriptors will fit in an fd_set */
static gboolean
selectable_fds (const GstPoll * set)
selectable_fds (GstPoll * set)
{
guint i;
@ -311,7 +311,7 @@ pollable_timeout (GstClockTime timeout)
#endif
static GstPollMode
choose_mode (const GstPoll * set, GstClockTime timeout)
choose_mode (GstPoll * set, GstClockTime timeout)
{
GstPollMode mode;