From 907ed40fd1b1a1298e5d339f51e68df5f0b63872 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 30 Nov 2012 21:14:25 +0100 Subject: few minor optimizations --- plugins/artwork/artwork.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/artwork') diff --git a/plugins/artwork/artwork.c b/plugins/artwork/artwork.c index 3ef62755..74fdcc10 100644 --- a/plugins/artwork/artwork.c +++ b/plugins/artwork/artwork.c @@ -5,6 +5,9 @@ #include #include #include +#ifdef __linux__ +#include +#endif #include #include #include @@ -799,6 +802,9 @@ id3v2_skip_str (int enc, uint8_t *ptr, uint8_t *end) { static void fetcher_thread (void *none) { +#ifdef __linux__ + prctl (PR_SET_NAME, "deadbeef-artwork", 0, 0, 0, 0); +#endif for (;;) { trace ("artwork: waiting for signal\n"); deadbeef->cond_wait (cond, mutex); -- cgit v1.2.3