From b45f600a4ecf9b3f6121a30794e9fcbbb2fee621 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 12 Jun 2017 12:49:11 +0000 Subject: improved m3u support (#910) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7227 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/PlayListFormats/xspf/xspfplaylistformat.cpp | 5 +++-- src/plugins/PlayListFormats/xspf/xspfplaylistformat.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/plugins/PlayListFormats/xspf') diff --git a/src/plugins/PlayListFormats/xspf/xspfplaylistformat.cpp b/src/plugins/PlayListFormats/xspf/xspfplaylistformat.cpp index adea65e0e..d5ab21fb5 100644 --- a/src/plugins/PlayListFormats/xspf/xspfplaylistformat.cpp +++ b/src/plugins/PlayListFormats/xspf/xspfplaylistformat.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2014 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -88,8 +88,9 @@ QStringList XSPFPlaylistFormat::decode(const QString & contents) // Needs more work - it's better use libSpiff there and put it as plugin. -QString XSPFPlaylistFormat::encode(const QList & files) +QString XSPFPlaylistFormat::encode(const QList & files, const QString &path) { + Q_UNUSED(path); QString out; QXmlStreamWriter xml(&out); xml.setCodec("UTF-8"); diff --git a/src/plugins/PlayListFormats/xspf/xspfplaylistformat.h b/src/plugins/PlayListFormats/xspf/xspfplaylistformat.h index d1e5c0cb9..d3b03d3ca 100644 --- a/src/plugins/PlayListFormats/xspf/xspfplaylistformat.h +++ b/src/plugins/PlayListFormats/xspf/xspfplaylistformat.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2014 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -37,7 +37,7 @@ class XSPFPlaylistFormat : public QObject, public PlayListFormat public: const PlayListFormatProperties properties() const; QStringList decode(const QString& contents); - QString encode(const QList& contents); + QString encode(const QList& contents, const QString &path); }; #endif -- cgit v1.2.3-13-gbd6f