Fix a bug in the output of para_audioc.
[paraslash.git] / playlist.c
index 171ebab59938b79b0f18c61e60fdb40b9390b680..d1e16f8e131814f5c70b53239b747077f65d0c1e 100644 (file)
@@ -1,9 +1,10 @@
 /*
- * Copyright (C) 2007-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
+#include <osl.h>
 #include "para.h"
 #include "error.h"
 #include "string.h"
@@ -174,7 +175,7 @@ int playlist_open(char *name)
 
        obj.data = name;
        obj.size = strlen(obj.data);
-       ret = osl_get_row(playlists_table, BLOBCOL_NAME, &obj, &row);
+       ret = osl(osl_get_row(playlists_table, BLOBCOL_NAME, &obj, &row));
        if (ret < 0) {
                PARA_NOTICE_LOG("failed to load playlist %s\n", name);
                return ret;