From: Edward Hervey Date: Mon, 12 Oct 2009 10:02:34 +0000 (+0200) Subject: gstpluginloader: Don't wait forever on gst_poll_wait. X-Git-Tag: RELEASE-0.10.26~360 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f68d7a6f8a91b5296fd2135cf62d7842b77bce7;p=platform%2Fupstream%2Fgstreamer.git gstpluginloader: Don't wait forever on gst_poll_wait. This allows the macosx versions to properly error out when fds are closed. This is only a temporary fix until the pluginloader is switched to not use GstPoll but GIOChannels. --- diff --git a/gst/gstpluginloader.c b/gst/gstpluginloader.c index 60dfe88..fd062d4 100644 --- a/gst/gstpluginloader.c +++ b/gst/gstpluginloader.c @@ -881,7 +881,7 @@ exchange_packets (GstPluginLoader * l) /* Wait for activity on our FDs */ do { do { - res = gst_poll_wait (l->fdset, GST_CLOCK_TIME_NONE); + res = gst_poll_wait (l->fdset, GST_SECOND); } while (res == -1 && (errno == EINTR || errno == EAGAIN)); if (res < 0)