gstpluginloader: Don't wait forever on gst_poll_wait.
authorEdward Hervey <bilboed@bilboed.com>
Mon, 12 Oct 2009 10:02:34 +0000 (12:02 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Oct 2009 10:21:49 +0000 (12:21 +0200)
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.

gst/gstpluginloader.c

index 60dfe88..fd062d4 100644 (file)
@@ -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)