gst/elements/gstfdsrc.c: set the first parameter for select call correctly.

Original commit message from CVS:
* gst/elements/gstfdsrc.c: (gst_fdsrc_get):
set the first parameter for select call correctly.
(fixes #137230)
This commit is contained in:
Benjamin Otte 2004-03-15 19:49:36 +00:00
parent 7baa6c18e7
commit 1cedbe04e1
3 changed files with 8 additions and 2 deletions

View file

@ -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

View 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) {

View 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) {