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
14016219
Commit
14016219
authored
Aug 31, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/raop: remove Audio-Jack-Status check
The value of this is not used, the code is commented out - let's get rid of it.
parent
3c034b0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
27 deletions
+7
-27
raop_output_plugin.c
src/output/raop_output_plugin.c
+1
-25
rtsp_client.c
src/rtsp_client.c
+6
-2
No files found.
src/output/raop_output_plugin.c
View file @
14016219
...
...
@@ -496,9 +496,6 @@ raopcl_connect(struct raop_data *rd, GError **error_r)
char
*
sac
=
NULL
,
*
key
=
NULL
,
*
iv
=
NULL
;
char
sdp
[
1024
];
int
rval
=
false
;
struct
key_data
*
setup_kd
=
NULL
;
char
*
aj
,
*
token
,
*
pc
;
const
char
delimiters
[]
=
";"
;
unsigned
char
rsakey
[
512
];
struct
timeval
current_time
;
unsigned
int
sessionNum
;
...
...
@@ -543,30 +540,10 @@ raopcl_connect(struct raop_data *rd, GError **error_r)
if
(
!
rtspcl_announce_sdp
(
rd
->
rtspcl
,
sdp
,
error_r
))
goto
erexit
;
// if (!rtspcl_mark_del_exthds(rd->rtspcl, "Apple-Challenge")) goto erexit;
if
(
!
rtspcl_setup
(
rd
->
rtspcl
,
&
setup_kd
,
if
(
!
rtspcl_setup
(
rd
->
rtspcl
,
NULL
,
raop_session
->
ctrl
.
port
,
raop_session
->
ntp
.
port
,
error_r
))
goto
erexit
;
if
(
!
(
aj
=
kd_lookup
(
setup_kd
,
"Audio-Jack-Status"
)))
{
g_set_error_literal
(
error_r
,
raop_output_quark
(),
0
,
"Audio-Jack-Status is missing"
);
goto
erexit
;
}
token
=
strtok
(
aj
,
delimiters
);
while
(
token
)
{
if
((
pc
=
strstr
(
token
,
"="
)))
{
*
pc
=
0
;
if
(
!
strcmp
(
token
,
"type"
)
&&
!
strcmp
(
pc
+
1
,
"digital"
))
{
// rd->ajtype = JACK_TYPE_DIGITAL;
}
}
else
{
if
(
!
strcmp
(
token
,
"connected"
))
{
// rd->ajstatus = JACK_STATUS_CONNECTED;
}
}
token
=
strtok
(
NULL
,
delimiters
);
}
if
(
!
get_sockaddr_by_host
(
rd
->
addr
,
rd
->
rtspcl
->
control_port
,
&
rd
->
ctrl_addr
,
error_r
))
...
...
@@ -588,7 +565,6 @@ raopcl_connect(struct raop_data *rd, GError **error_r)
g_free
(
sac
);
g_free
(
key
);
g_free
(
iv
);
free_kd
(
setup_kd
);
return
rval
;
}
...
...
src/rtsp_client.c
View file @
14016219
...
...
@@ -681,11 +681,15 @@ rtspcl_setup(struct rtspcl_data *rtspcld, struct key_data **kd,
rval
=
true
;
erexit:
g_free
(
buf
);
if
(
!
rval
)
{
if
(
!
rval
||
kd
==
NULL
)
{
free_kd
(
rkd
);
rkd
=
NULL
;
}
*
kd
=
rkd
;
if
(
kd
!=
NULL
)
*
kd
=
rkd
;
return
rval
;
}
...
...
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