test/test_queue_priority: fix SIGABRT
This commit is contained in:
parent
e8df7e8da5
commit
488c1eb87b
@ -1351,7 +1351,6 @@ test_test_pcm_LDADD = \
|
|||||||
|
|
||||||
test_test_queue_priority_SOURCES = \
|
test_test_queue_priority_SOURCES = \
|
||||||
src/queue.c \
|
src/queue.c \
|
||||||
test/FakeSong.cxx \
|
|
||||||
test/test_queue_priority.c
|
test/test_queue_priority.c
|
||||||
test_test_queue_priority_LDADD = \
|
test_test_queue_priority_LDADD = \
|
||||||
$(GLIB_LIBS)
|
$(GLIB_LIBS)
|
||||||
|
@ -1,5 +1,20 @@
|
|||||||
|
#include "config.h"
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
#include "song.h"
|
#include "song.h"
|
||||||
|
#include "directory.h"
|
||||||
|
|
||||||
|
struct directory detached_root;
|
||||||
|
|
||||||
|
struct song *
|
||||||
|
song_dup_detached(const struct song *src)
|
||||||
|
{
|
||||||
|
union {
|
||||||
|
const struct song *in;
|
||||||
|
struct song *out;
|
||||||
|
} u = { .in = src };
|
||||||
|
|
||||||
|
return u.out;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
song_free(G_GNUC_UNUSED struct song *song)
|
song_free(G_GNUC_UNUSED struct song *song)
|
||||||
|
Loading…
Reference in New Issue
Block a user