Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
dd0798a3
Commit
dd0798a3
authored
Aug 31, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp_client: use g_usleep()
usleep() is not portable.
parent
9209ccfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
rtsp_client.c
src/rtsp_client.c
+1
-3
No files found.
src/rtsp_client.c
View file @
dd0798a3
...
...
@@ -190,8 +190,6 @@ get_sockaddr_by_host(const char *host, short destport,
return
true
;
}
#define SLEEP_MSEC(val) usleep(val*1000)
/*
* create tcp connection
* as long as the socket is not non-blocking, this can block the process
...
...
@@ -201,7 +199,7 @@ static bool
get_tcp_connect
(
int
sd
,
struct
sockaddr_in
dest_addr
,
GError
**
error_r
)
{
if
(
connect
(
sd
,
(
struct
sockaddr
*
)
&
dest_addr
,
sizeof
(
struct
sockaddr
))){
SLEEP_MSEC
(
100L
);
g_usleep
(
100000
);
// try one more time
if
(
connect
(
sd
,
(
struct
sockaddr
*
)
&
dest_addr
,
sizeof
(
struct
sockaddr
)))
{
g_set_error
(
error_r
,
rtsp_client_quark
(),
errno
,
...
...
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