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
0575a6d6
Commit
0575a6d6
authored
Aug 24, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/raop: use GLib byte order macros
parent
08b88714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
raop_output_plugin.c
src/output/raop_output_plugin.c
+3
-5
No files found.
src/output/raop_output_plugin.c
View file @
0575a6d6
...
@@ -378,12 +378,10 @@ get_tcp_connect_by_host(int sd, const char *host, short destport,
...
@@ -378,12 +378,10 @@ get_tcp_connect_by_host(int sd, const char *host, short destport,
* Calculate the current NTP time, store it in the buffer.
* Calculate the current NTP time, store it in the buffer.
*/
*/
static
void
static
void
fill_int
(
unsigned
char
*
buffer
,
u
nsigned
int
rtp_tim
e
)
fill_int
(
unsigned
char
*
buffer
,
u
int32_t
valu
e
)
{
{
int
iter
;
uint32_t
be
=
GINT32_TO_BE
(
value
);
for
(
iter
=
0
;
iter
<
4
;
iter
++
)
{
memcpy
(
buffer
,
&
be
,
sizeof
(
be
));
buffer
[
iter
]
=
(
rtp_time
>>
((
3
-
iter
)
*
8
))
&
0xff
;
}
}
}
/*
/*
...
...
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