From 412ce8bdc48f05963b7ef7eca27d760aff3a8500 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 13 Apr 2008 01:16:27 +0000 Subject: Make the OutputBuffer API more consistent We had functions names varied between outputBufferFoo, fooOutputBuffer, and output_buffer_foo That was too confusing for my little brain to handle. And the global variable was somehow named 'cb' instead of the more obvious 'ob'... git-svn-id: https://svn.musicpd.org/mpd/trunk@7355 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playerData.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/playerData.c') diff --git a/src/playerData.c b/src/playerData.c index 5ac7c4785..56dee348c 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -29,7 +29,7 @@ unsigned int buffered_before_play; static PlayerData playerData_pd; PlayerControl pc; DecoderControl dc; -OutputBuffer cb; /* rename this to 'ob' */ +OutputBuffer ob; void initPlayerData(void) { @@ -77,7 +77,7 @@ void initPlayerData(void) playerData_pd.audioDeviceStates = xmalloc(device_array_size); - initOutputBuffer(buffered_chunks); + ob_init(buffered_chunks); notifyInit(&pc.notify); pc.error = PLAYER_ERROR_NOERROR; @@ -104,6 +104,6 @@ void freePlayerData(void) * access playerData_pd and we need to keep it available for them */ waitpid(-1, NULL, 0); - output_buffer_free(); + ob_free(); free(playerData_pd.audioDeviceStates); } -- cgit v1.2.3