Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
5ea5076a
Commit
5ea5076a
authored
Nov 15, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed MacOS X 10.1 network input, thanks to Mathias Kretschmer <mathias@research.att.com>.
parent
3e5f531b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
src/input/input.c
src/input/input.c
+8
-15
No files found.
src/input/input.c
View file @
5ea5076a
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* decoders.
* decoders.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.15
5 2001/11/13 16:00:54
sam Exp $
* $Id: input.c,v 1.15
6 2001/11/15 18:50:49
sam Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -865,11 +865,8 @@ static void NetworkOpen( input_thread_t * p_input )
...
@@ -865,11 +865,8 @@ static void NetworkOpen( input_thread_t * p_input )
if
(
setsockopt
(
p_input
->
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
if
(
setsockopt
(
p_input
->
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
(
void
*
)
&
i_opt
,
sizeof
(
i_opt
)
)
==
-
1
)
(
void
*
)
&
i_opt
,
sizeof
(
i_opt
)
)
==
-
1
)
{
{
intf_ErrMsg
(
"input error: can't configure socket (SO_RCVBUF: %s)"
,
intf_WarnMsg
(
1
,
"input error: can't configure socket (SO_RCVBUF: %s)"
,
strerror
(
errno
));
strerror
(
errno
));
close
(
p_input
->
i_handle
);
p_input
->
b_error
=
1
;
return
;
}
}
/* Check if we really got what we have asked for, because Linux, etc.
/* Check if we really got what we have asked for, because Linux, etc.
...
@@ -880,17 +877,13 @@ static void NetworkOpen( input_thread_t * p_input )
...
@@ -880,17 +877,13 @@ static void NetworkOpen( input_thread_t * p_input )
if
(
getsockopt
(
p_input
->
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
if
(
getsockopt
(
p_input
->
i_handle
,
SOL_SOCKET
,
SO_RCVBUF
,
(
void
*
)
&
i_opt
,
&
i_opt_size
)
==
-
1
)
(
void
*
)
&
i_opt
,
&
i_opt_size
)
==
-
1
)
{
{
intf_ErrMsg
(
"input error: can't configure socket (SO_RCVBUF: %s)"
,
intf_WarnMsg
(
1
,
"input error: can't query socket (SO_RCVBUF: %s)"
,
strerror
(
errno
));
strerror
(
errno
));
close
(
p_input
->
i_handle
);
p_input
->
b_error
=
1
;
return
;
}
}
else
if
(
i_opt
<
0x80000
)
if
(
i_opt
<
0x80000
)
{
{
intf_WarnMsg
(
1
,
"input warning: socket
receive buffer size just
0x%x"
intf_WarnMsg
(
1
,
"input warning: socket
buffer size is
0x%x"
" instead of 0x%x
bytes.
"
,
i_opt
,
0x80000
);
" instead of 0x%x"
,
i_opt
,
0x80000
);
}
}
/* Build the local socket */
/* Build the local socket */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment