diff --git a/ChangeLog b/ChangeLog index 24f337c12d..92dea4d12a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-03-15 Benjamin Otte + + * gst/elements/gstfdsrc.c: (gst_fdsrc_get): + set the first parameter for select call correctly. + (fixes #137230) + 2004-03-15 Thomas Vander Stichele * *.c,*.h: don't mix tabs and spaces diff --git a/gst/elements/gstfdsrc.c b/gst/elements/gstfdsrc.c index e723cbc158..529b97b3e4 100644 --- a/gst/elements/gstfdsrc.c +++ b/gst/elements/gstfdsrc.c @@ -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) { diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c index e723cbc158..529b97b3e4 100644 --- a/plugins/elements/gstfdsrc.c +++ b/plugins/elements/gstfdsrc.c @@ -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) {