mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
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:
parent
7baa6c18e7
commit
1cedbe04e1
3 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue