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
03b1fad4
Commit
03b1fad4
authored
Aug 24, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/raop: remove unused local variables
parent
72eb4c53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
raop_output_plugin.c
src/output/raop_output_plugin.c
+2
-4
No files found.
src/output/raop_output_plugin.c
View file @
03b1fad4
...
...
@@ -1081,12 +1081,11 @@ send_audio_data(int fd)
{
int
i
=
0
;
struct
timeval
current_time
,
tout
,
rtp_time
;
int
diff
,
olddiff
;
struct
raop_data
*
rd
=
raop_session
->
raop_list
;
get_time_for_rtp
(
&
raop_session
->
play_state
,
&
rtp_time
);
gettimeofday
(
&
current_time
,
NULL
);
olddiff
=
diff
=
difference
(
&
current_time
,
&
rtp_time
);
int
diff
=
difference
(
&
current_time
,
&
rtp_time
);
while
(
diff
<
-
10000
)
{
tout
.
tv_sec
=
0
;
...
...
@@ -1322,7 +1321,6 @@ raop_output_play(void *data, const void *chunk, size_t size,
struct
raop_data
*
rd
=
data
;
struct
timeval
tout
=
{.
tv_sec
=
0
,
.
tv_usec
=
0
};
size_t
rval
=
0
,
orig_size
=
size
;
bool
first
=
false
;
rd
->
paused
=
false
;
if
(
!
rd
->
is_master
)
{
...
...
@@ -1338,7 +1336,7 @@ raop_output_play(void *data, const void *chunk, size_t size,
// looped over, need new reference point to calculate correct times
raop_session
->
play_state
.
playing
=
false
;
}
first
=
!
raop_session
->
play_state
.
playing
;
while
(
raop_session
->
bufferSize
+
size
>=
RAOP_BUFFER_SIZE
)
{
// ntp header
unsigned
char
header
[]
=
{
...
...
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