ls: include cleanup
Don't include headers which are not used. Fix some includes in decoder_thread.c.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include "decoder_thread.h"
|
#include "decoder_thread.h"
|
||||||
#include "decoder_control.h"
|
#include "decoder_control.h"
|
||||||
#include "decoder_internal.h"
|
#include "decoder_internal.h"
|
||||||
|
#include "decoder_list.h"
|
||||||
#include "player_control.h"
|
#include "player_control.h"
|
||||||
#include "pipe.h"
|
#include "pipe.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
@@ -30,6 +31,8 @@
|
|||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
decoder_stream_decode(const struct decoder_plugin *plugin,
|
decoder_stream_decode(const struct decoder_plugin *plugin,
|
||||||
struct decoder *decoder,
|
struct decoder *decoder,
|
||||||
|
8
src/ls.c
8
src/ls.c
@@ -17,12 +17,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ls.h"
|
#include "ls.h"
|
||||||
#include "playlist.h"
|
|
||||||
#include "path.h"
|
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "log.h"
|
|
||||||
#include "stored_playlist.h"
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "decoder_list.h"
|
||||||
|
#include "archive_list.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@@ -78,7 +76,7 @@ hasMusicSuffix(const char *utf8file, unsigned int next)
|
|||||||
if (s) {
|
if (s) {
|
||||||
ret = decoder_plugin_from_suffix(s, next);
|
ret = decoder_plugin_from_suffix(s, next);
|
||||||
} else {
|
} else {
|
||||||
DEBUG("hasMusicSuffix: The file: %s has no valid suffix\n",
|
g_debug("hasMusicSuffix: The file: %s has no valid suffix\n",
|
||||||
utf8file);
|
utf8file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user