rtsp_client: allow parameter "kd" to be NULL

When the caller isn't interested in the values.
This commit is contained in:
Max Kellermann
2011-08-31 08:16:55 +02:00
parent 2525d32e17
commit 9209ccfa40
3 changed files with 17 additions and 8 deletions

View File

@@ -756,7 +756,7 @@ raop_output_cancel(void *data)
kd.data = buf;
kd.next = NULL;
exec_request(rd->rtspcl, "FLUSH", NULL, NULL, 1,
&kd, &(rd->rtspcl->kd), NULL);
&kd, NULL, NULL);
g_mutex_unlock(rd->control_mutex);
}
@@ -815,7 +815,7 @@ raop_output_close(void *data)
g_mutex_lock(rd->control_mutex);
exec_request(rd->rtspcl, "TEARDOWN", NULL, NULL, 0,
NULL, &rd->rtspcl->kd, NULL);
NULL, NULL, NULL);
g_mutex_unlock(rd->control_mutex);
rd->started = 0;