gst/elements/gstfdsrc.c: set the first parameter for select call correctly.
authorBenjamin Otte <otte@gnome.org>
Mon, 15 Mar 2004 19:49:36 +0000 (19:49 +0000)
committerBenjamin Otte <otte@gnome.org>
Mon, 15 Mar 2004 19:49:36 +0000 (19:49 +0000)
Original commit message from CVS:
* gst/elements/gstfdsrc.c: (gst_fdsrc_get):
set the first parameter for select call correctly.
(fixes #137230)

ChangeLog
gst/elements/gstfdsrc.c
plugins/elements/gstfdsrc.c

index 24f337c..92dea4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-15  Benjamin Otte  <otte@gnome.org>
+
+       * gst/elements/gstfdsrc.c: (gst_fdsrc_get):
+         set the first parameter for select call correctly.
+         (fixes #137230)
+
 2004-03-15  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * *.c,*.h: don't mix tabs and spaces
index e723cbc..529b97b 100644 (file)
@@ -203,7 +203,7 @@ gst_fdsrc_get (GstPad * pad)
     tp = NULL;
 
   do {
-    retval = select (1, &readfds, NULL, NULL, tp);
+    retval = select (src->fd + 1, &readfds, NULL, NULL, tp);
   } while (retval == -1 && errno == EINTR);     /* retry if interrupted */
 
   if (retval == -1) {
index e723cbc..529b97b 100644 (file)
@@ -203,7 +203,7 @@ gst_fdsrc_get (GstPad * pad)
     tp = NULL;
 
   do {
-    retval = select (1, &readfds, NULL, NULL, tp);
+    retval = select (src->fd + 1, &readfds, NULL, NULL, tp);
   } while (retval == -1 && errno == EINTR);     /* retry if interrupted */
 
   if (retval == -1) {