]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Clean up player.c with clang_format.
authorMike Brady <mikebrady@eircom.net>
Tue, 5 Jun 2018 18:07:10 +0000 (19:07 +0100)
committerMike Brady <mikebrady@eircom.net>
Tue, 5 Jun 2018 18:07:10 +0000 (19:07 +0100)
player.c

index a516aa0b5687c3ffa8b894c6761184df10d1c1c8..3a2b8dc02494752d9f078a6f9446b1d9495b1f08 100644 (file)
--- a/player.c
+++ b/player.c
@@ -466,14 +466,14 @@ static void free_audio_buffers(rtsp_conn_info *conn) {
 
 void player_thread_lock_cleanup(void *arg) {
   rtsp_conn_info *conn = (rtsp_conn_info *)arg;
-  debug(3,"Cleaning up player_thread_lock.");
+  debug(3, "Cleaning up player_thread_lock.");
   pthread_rwlock_unlock(&conn->player_thread_lock);
 }
 
 void player_put_packet(seq_t seqno, uint32_t actual_timestamp, int64_t timestamp, uint8_t *data,
                        int len, rtsp_conn_info *conn) {
   if (pthread_rwlock_tryrdlock(&conn->player_thread_lock) == 0) {
-    pthread_cleanup_push( player_thread_lock_cleanup, (void *)conn);
+    pthread_cleanup_push(player_thread_lock_cleanup, (void *)conn);
     if (conn->player_thread != NULL) {
 
       // all timestamps are done at the output rate
@@ -643,7 +643,7 @@ void player_put_packet(seq_t seqno, uint32_t actual_timestamp, int64_t timestamp
     } else {
       debug(1, "player_put_packet discarded packet %d because the player thread was gone.");
     }
-    pthread_cleanup_pop( 1);
+    pthread_cleanup_pop(1);
     // pthread_rwlock_unlock(&conn->player_thread_lock);
   } else {
     debug(1, "player_put_packet discarded packet %d because the player thread was locked.", seqno);