mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
Whitespace cleanup: Remove all multiple newlines
This patch removes all occurrences of double and triple
newlines.
Command used for this:
find . -type d \( -name ffmpeg \) -prune -o \
-regex '\(.*\.[hc]\|.*\.cc\)' \
-a -not -name 'adrian-aec.*' -a -not \
-name reserve.c -a -not -name 'rtkit.*' \
-exec sed -i -e '/^$/{N;s/^\n$//}' {} \;
Two passes were needed to remove triple newlines.
The excluded files are mirrored files from external sources.
This commit is contained in:
parent
e95d054e40
commit
97da92d894
69 changed files with 0 additions and 125 deletions
|
|
@ -96,7 +96,6 @@ pa_rtsp_client* pa_rtsp_client_new(pa_mainloop_api *mainloop, const char* hostna
|
|||
return c;
|
||||
}
|
||||
|
||||
|
||||
void pa_rtsp_client_free(pa_rtsp_client* c) {
|
||||
pa_assert(c);
|
||||
|
||||
|
|
@ -120,7 +119,6 @@ void pa_rtsp_client_free(pa_rtsp_client* c) {
|
|||
pa_xfree(c);
|
||||
}
|
||||
|
||||
|
||||
static void headers_read(pa_rtsp_client *c) {
|
||||
char* token;
|
||||
char delimiters[] = ";";
|
||||
|
|
@ -171,7 +169,6 @@ static void headers_read(pa_rtsp_client *c) {
|
|||
c->callback(c, c->state, c->response_headers, c->userdata);
|
||||
}
|
||||
|
||||
|
||||
static void line_callback(pa_ioline *line, const char *s, void *userdata) {
|
||||
char *delimpos;
|
||||
char *s2, *s2p;
|
||||
|
|
@ -278,7 +275,6 @@ static void line_callback(pa_ioline *line, const char *s, void *userdata) {
|
|||
pa_xfree(s2);
|
||||
}
|
||||
|
||||
|
||||
static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata) {
|
||||
pa_rtsp_client *c = userdata;
|
||||
union {
|
||||
|
|
@ -359,7 +355,6 @@ void pa_rtsp_disconnect(pa_rtsp_client *c) {
|
|||
c->ioline = NULL;
|
||||
}
|
||||
|
||||
|
||||
const char* pa_rtsp_localip(pa_rtsp_client* c) {
|
||||
pa_assert(c);
|
||||
|
||||
|
|
@ -448,7 +443,6 @@ static int rtsp_exec(pa_rtsp_client* c, const char* cmd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_announce(pa_rtsp_client *c, const char* sdp) {
|
||||
pa_assert(c);
|
||||
if (!sdp)
|
||||
|
|
@ -458,7 +452,6 @@ int pa_rtsp_announce(pa_rtsp_client *c, const char* sdp) {
|
|||
return rtsp_exec(c, "ANNOUNCE", "application/sdp", sdp, 1, NULL);
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_setup(pa_rtsp_client* c) {
|
||||
pa_headerlist* headers;
|
||||
int rv;
|
||||
|
|
@ -474,7 +467,6 @@ int pa_rtsp_setup(pa_rtsp_client* c) {
|
|||
return rv;
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_record(pa_rtsp_client* c, uint16_t* seq, uint32_t* rtptime) {
|
||||
pa_headerlist* headers;
|
||||
int rv;
|
||||
|
|
@ -501,7 +493,6 @@ int pa_rtsp_record(pa_rtsp_client* c, uint16_t* seq, uint32_t* rtptime) {
|
|||
return rv;
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_teardown(pa_rtsp_client *c) {
|
||||
pa_assert(c);
|
||||
|
||||
|
|
@ -509,7 +500,6 @@ int pa_rtsp_teardown(pa_rtsp_client *c) {
|
|||
return rtsp_exec(c, "TEARDOWN", NULL, NULL, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_setparameter(pa_rtsp_client *c, const char* param) {
|
||||
pa_assert(c);
|
||||
if (!param)
|
||||
|
|
@ -519,7 +509,6 @@ int pa_rtsp_setparameter(pa_rtsp_client *c, const char* param) {
|
|||
return rtsp_exec(c, "SET_PARAMETER", "text/parameters", param, 1, NULL);
|
||||
}
|
||||
|
||||
|
||||
int pa_rtsp_flush(pa_rtsp_client *c, uint16_t seq, uint32_t rtptime) {
|
||||
pa_headerlist* headers;
|
||||
int rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue