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
76a959a5
Commit
76a959a5
authored
Sep 19, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtsp_client, output/raop: use close_socket() instead of close()
parent
f43873dc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
raop_output_plugin.c
src/output/raop_output_plugin.c
+4
-4
rtsp_client.c
src/rtsp_client.c
+3
-1
No files found.
src/output/raop_output_plugin.c
View file @
76a959a5
...
...
@@ -21,7 +21,7 @@
#include "raop_output_plugin.h"
#include "output_api.h"
#include "mixer_list.h"
#include "
raop_output_plugin
.h"
#include "
fd_util
.h"
#include "ntp_server.h"
#include "rtsp_client.h"
#include "glib_compat.h"
...
...
@@ -162,10 +162,10 @@ raop_session_free(struct raop_session_data *session)
g_mutex_free
(
session
->
list_mutex
);
if
(
raop_session
->
data_fd
>=
0
)
close
(
raop_session
->
data_fd
);
close
_socket
(
raop_session
->
data_fd
);
if
(
raop_session
->
ctrl
.
fd
>=
0
)
close
(
raop_session
->
ctrl
.
fd
);
close
_socket
(
raop_session
->
ctrl
.
fd
);
g_free
(
session
);
}
...
...
@@ -345,7 +345,7 @@ open_udp_socket(char *hostname, unsigned short *port,
return
-
1
;
}
if
(
bind_host
(
sd
,
hostname
,
0
,
port
,
error_r
))
{
close
(
sd
);
close
_socket
(
sd
);
return
-
1
;
}
...
...
src/rtsp_client.c
View file @
76a959a5
...
...
@@ -21,8 +21,10 @@
* Based on the RTSP client by Shiro Ninomiya <shiron@snino.com>
*/
#include "config.h"
#include "rtsp_client.h"
#include "tcp_socket.h"
#include "fd_util.h"
#include "glib_compat.h"
#include <assert.h>
...
...
@@ -164,7 +166,7 @@ open_tcp_socket(char *hostname, unsigned short *port,
return
-
1
;
}
if
(
bind_host
(
sd
,
hostname
,
0
,
port
,
error_r
))
{
close
(
sd
);
close
_socket
(
sd
);
return
-
1
;
}
...
...
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