Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit deadbeef-plugin-mpris2 for openSUSE:Factory
Hello community,

here is the log from the commit of package deadbeef-plugin-mpris2 for
openSUSE:Factory checked in at 2019-04-28 20:15:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/deadbeef-plugin-mpris2 (Old)
and /work/SRC/openSUSE:Factory/.deadbeef-plugin-mpris2.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "deadbeef-plugin-mpris2"

Sun Apr 28 20:15:44 2019 rev:2 rq:698757 version:1.12

Changes:
--------
---
/work/SRC/openSUSE:Factory/deadbeef-plugin-mpris2/deadbeef-plugin-mpris2.changes
2017-06-15 11:19:01.880363972 +0200
+++
/work/SRC/openSUSE:Factory/.deadbeef-plugin-mpris2.new.5536/deadbeef-plugin-mpris2.changes
2019-04-28 20:15:46.246332070 +0200
@@ -1,0 +2,10 @@
+Sun Apr 28 08:15:07 UTC 2019 - Hillwood Yang <hillwood@xxxxxxxxxxxx>
+
+- Update version to 1.12
+ * Fix double free
+ * Send correct CanSeek
+ * Fix duration for radio streams
+ * Fix pause handling
+ * New features: CanPlay, CanGoPrevious, CanGoNext
+
+-------------------------------------------------------------------

Old:
----
deadbeef-mpris2-plugin-1.10.tar.xz

New:
----
deadbeef-mpris2-plugin-1.12.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ deadbeef-plugin-mpris2.spec ++++++
--- /var/tmp/diff_new_pack.kTHm9C/_old 2019-04-28 20:15:46.670331806 +0200
+++ /var/tmp/diff_new_pack.kTHm9C/_new 2019-04-28 20:15:46.674331804 +0200
@@ -1,8 +1,8 @@
#
# spec file for package deadbeef-plugin-mpris2
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2015 Hillwood Yang <hillwood@xxxxxxxxxxxx>
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 Hillwood Yang <hillwood@xxxxxxxxxxxx>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,10 +19,10 @@

%define _name deadbeef-mpris2-plugin
Name: deadbeef-plugin-mpris2
-Version: 1.10
+Version: 1.12
Release: 0
Summary: MPRISv2 plugin for the DeaDBeeF music player
-License: GPL-3.0+
+License: GPL-3.0-or-later
Group: Productivity/Multimedia/Sound/Players
Url: https://github.com/Serranya/deadbeef-mpris2-plugin
Source:
https://github.com/Serranya/%{_name}/releases/download/v%{version}/%{_name}-%{version}.tar.xz

++++++ deadbeef-mpris2-plugin-1.10.tar.xz -> deadbeef-mpris2-plugin-1.12.tar.xz
++++++
++++ 5937 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/Makefile.am new/deadbeef-1.12/Makefile.am
--- old/deadbeef-1.10/Makefile.am 2016-04-17 10:13:16.000000000 +0200
+++ new/deadbeef-1.12/Makefile.am 2019-01-16 09:21:50.000000000 +0100
@@ -3,6 +3,6 @@
ACLOCAL_AMFLAGS= -I m4

mpris_la_SOURCES=src/mpris.c src/mprisServer.c src/mprisServer.h src/logging.c
src/logging.h src/artwork.h
-mpris_la_CFLAGS=${GIO_DEPS_CFLAGS} ${GTHREAD_DEPS_CFLAGS} ${GLIB_DEPS_CFLAGS}
+mpris_la_CFLAGS=${GIO_DEPS_CFLAGS} ${GIOUNIX_DEPS_CFLAGS}
${GTHREAD_DEPS_CFLAGS} ${GLIB_DEPS_CFLAGS}
mpris_la_LDFLAGS=-module -avoid-version -shared
-mpris_la_LIBADD=${GIO_DEPS_LIBS} ${GTHREAD_DEPS_LIBS} ${GLIB_DEPS_LIBS}
+mpris_la_LIBADD=${GIO_DEPS_LIBS} ${GIOUNIX_DEPS_LIBS} ${GTHREAD_DEPS_LIBS}
${GLIB_DEPS_LIBS}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/README new/deadbeef-1.12/README
--- old/deadbeef-1.10/README 2015-10-16 23:51:40.000000000 +0200
+++ new/deadbeef-1.12/README 2019-01-16 09:21:50.000000000 +0100
@@ -27,9 +27,9 @@
- make install

==== For Users ====
-- Grab the tarball from
https://github.com/Serranya/deadbeef-mpris2-plugin/releases/download/v1.8/deadbeef-mpris2-plugin-1.8.tar.xz
-- tar -xf deadbeef-mpris2-plugin-1.8.tar.xz
-- cd deadbeef-mpris-plugin-1.8
+- Grab the tarball from
https://github.com/Serranya/deadbeef-mpris2-plugin/releases/download/v1.11/deadbeef-mpris2-plugin-1.11.tar.xz
+- tar -xf deadbeef-mpris2-plugin-1.11.tar.xz
+- cd deadbeef-mpris-plugin-1.11
- ./configure
- make install

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/build-aux/ar-lib new/deadbeef-1.12/build-aux/ar-lib
--- old/deadbeef-1.10/build-aux/ar-lib 2016-10-01 09:13:32.000000000 +0200
+++ new/deadbeef-1.12/build-aux/ar-lib 2019-01-16 09:22:39.000000000 +0100
@@ -4,7 +4,7 @@
me=ar-lib
scriptversion=2012-03-01.08; # UTC

-# Copyright (C) 2010-2014 Free Software Foundation, Inc.
+# Copyright (C) 2010-2018 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@xxxxxxxxxxxxxx>.
#
# This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/build-aux/compile new/deadbeef-1.12/build-aux/compile
--- old/deadbeef-1.10/build-aux/compile 2016-10-01 09:13:32.000000000 +0200
+++ new/deadbeef-1.12/build-aux/compile 2019-01-16 09:22:39.000000000 +0100
@@ -1,9 +1,9 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.

-scriptversion=2012-10-14.11; # UTC
+scriptversion=2018-03-07.03; # UTC

-# Copyright (C) 1999-2014 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@xxxxxxxxxx>.
#
# This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -255,7 +255,8 @@
echo "compile $scriptversion"
exit $?
;;
- cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
+ icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
@@ -339,9 +340,9 @@
# Local Variables:
# mode: shell-script
# sh-indentation: 2
-# eval: (add-hook 'write-file-hooks 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/build-aux/missing new/deadbeef-1.12/build-aux/missing
--- old/deadbeef-1.10/build-aux/missing 2016-10-01 09:13:32.000000000 +0200
+++ new/deadbeef-1.12/build-aux/missing 2019-01-16 09:22:39.000000000 +0100
@@ -1,9 +1,9 @@
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.

-scriptversion=2013-10-28.13; # UTC
+scriptversion=2018-03-07.03; # UTC

-# Copyright (C) 1996-2014 Free Software Foundation, Inc.
+# Copyright (C) 1996-2018 Free Software Foundation, Inc.
# Originally written by Fran,cois Pinard <pinard@xxxxxxxxxxxxxxxx>, 1996.

# This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <https://www.gnu.org/licenses/>.

# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -101,9 +101,9 @@
exit $st
fi

-perl_URL=http://www.perl.org/
-flex_URL=http://flex.sourceforge.net/
-gnu_software_URL=http://www.gnu.org/software
+perl_URL=https://www.perl.org/
+flex_URL=https://github.com/westes/flex
+gnu_software_URL=https://www.gnu.org/software

program_details ()
{
@@ -207,9 +207,9 @@
exit $st

# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
+# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-time-zone: "UTC"
+# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/configure.ac new/deadbeef-1.12/configure.ac
--- old/deadbeef-1.10/configure.ac 2016-10-01 09:35:27.000000000 +0200
+++ new/deadbeef-1.12/configure.ac 2019-01-16 09:21:50.000000000 +0100
@@ -1,7 +1,11 @@
dnl Process this file with autoconf to produce a configure script.

+m4_define([plugin_version_major], [1])
+m4_define([plugin_version_minor], [12])
+m4_define([plugin_version], [plugin_version_major.plugin_version_minor])
+
AC_PREREQ([2.69])
-AC_INIT([deadbeef-mpris2-plugin], [1.10], [peterlamby@xxxxxx], [DeaDBeeF
MPRIS2 Plugin], [https://github.com/Serranya/deadbeef-mpris2-plugin])
+AC_INIT([deadbeef-mpris2-plugin], [plugin_version], [peterlamby@xxxxxx],
[DeaDBeeF MPRIS2 Plugin], [https://github.com/Serranya/deadbeef-mpris2-plugin])
AC_CONFIG_SRCDIR([src/mpris.c])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
@@ -18,10 +22,16 @@
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG

+AC_DEFINE(PLUGIN_VERSION_MAJOR, [plugin_version_major],
+ [Define to the plug-in major version])
+AC_DEFINE(PLUGIN_VERSION_MINOR, [plugin_version_minor],
+ [Define to the plug-in minor version])
+
LT_INIT

PKG_CHECK_MODULES([GLIB_DEPS], [glib-2.0], , AC_MSG_ERROR([glibc-2 is required
for this package]))
PKG_CHECK_MODULES([GIO_DEPS], [gio-2.0], , AC_MSG_ERROR([gio-2 is required for
this package]))
+PKG_CHECK_MODULES([GIOUNIX_DEPS], [gio-unix-2.0], , AC_MSG_ERROR([gio-unix-2
is required for this package]))
PKG_CHECK_MODULES([GTHREAD_DEPS], [gthread-2.0], , AC_MSG_ERROR([gthread-2 is
required for this package]))

AS_IF([test "x$ac_cv_prog_cc_c99" = "xno"], AC_MSG_ERROR([C99 Support is
required]))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/m4/libtool.m4 new/deadbeef-1.12/m4/libtool.m4
--- old/deadbeef-1.10/m4/libtool.m4 2016-10-01 09:13:30.000000000 +0200
+++ new/deadbeef-1.12/m4/libtool.m4 2019-01-16 09:22:32.000000000 +0100
@@ -1,6 +1,6 @@
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
#
-# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
+# Copyright (C) 1996-2001, 2003-2018 Free Software Foundation, Inc.
# Written by Gordon Matzigkeit, 1996
#
# This file is free software; the Free Software Foundation gives
@@ -219,8 +219,8 @@
ofile=libtool
can_build_shared=yes

-# All known linkers require a '.a' archive for static linking (except MSVC,
-# which needs '.lib').
+# All known linkers require a '.a' archive for static linking (except MSVC and
+# ICC, which need '.lib').
libext=a

with_gnu_ld=$lt_cv_prog_gnu_ld
@@ -1042,8 +1042,8 @@
_LT_EOF
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
- echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
- $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+ echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
+ $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
$RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
cat > conftest.c << _LT_EOF
@@ -1493,9 +1493,22 @@
m4_defun([_LT_PROG_AR],
[AC_CHECK_TOOLS(AR, [ar], false)
: ${AR=ar}
-: ${AR_FLAGS=cru}
_LT_DECL([], [AR], [1], [The archiver])
-_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
+
+# Use ARFLAGS variable as AR's operation code to sync the variable naming with
+# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
+# higher priority because thats what people were doing historically (setting
+# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
+# variable obsoleted/removed.
+
+test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
+lt_ar_flags=$AR_FLAGS
+_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
+
+# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
+# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
+_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
+ [Flags to create an archive])

AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
[lt_cv_ar_at_file=no
@@ -2207,26 +2220,35 @@
striplib=
old_striplib=
AC_MSG_CHECKING([whether stripping libraries is possible])
-if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- AC_MSG_RESULT([yes])
+if test -z "$STRIP"; then
+ AC_MSG_RESULT([no])
else
-# FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP"; then
+ if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ old_striplib="$STRIP --strip-debug"
+ striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+ else
+ case $host_os in
+ darwin*)
+ # FIXME - insert some real tests, host_os isn't really good enough
striplib="$STRIP -x"
old_striplib="$STRIP -S"
AC_MSG_RESULT([yes])
- else
+ ;;
+ freebsd*)
+ if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
+ old_striplib="$STRIP --strip-debug"
+ striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ;;
+ *)
AC_MSG_RESULT([no])
- fi
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
+ ;;
+ esac
+ fi
fi
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
_LT_DECL([], [striplib], [1])
@@ -2565,8 +2587,8 @@
dynamic_linker='Win32 ld.exe'
;;

- *,cl*)
- # Native MSVC
+ *,cl* | *,icl*)
+ # Native MSVC or ICC
libname_spec='$name'
soname_spec='$libname`echo $release | $SED -e
's/[[.]]/-/g'`$versuffix$shared_ext'
library_names_spec='$libname.dll.lib'
@@ -2622,7 +2644,7 @@
;;

*)
- # Assume MSVC wrapper
+ # Assume MSVC and ICC wrapper
library_names_spec='$libname`echo $release | $SED -e
's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
dynamic_linker='Win32 ld.exe'
;;
@@ -4010,7 +4032,7 @@
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
# Fake it for dumpbin and say T for any non-static function,
# D for any global variable and I for any imported variable.
- # Also find C++ and __fastcall symbols from MSVC++,
+ # Also find C++ and __fastcall symbols from MSVC++ or ICC,
# which start with @ or ?.
lt_cv_sys_global_symbol_pipe="$AWK ['"\
" {last_section=section; section=\$ 3};"\
@@ -4919,7 +4941,7 @@
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 ==
"W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" }
else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
else
- _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V")
|| (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2
== "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' |
sort -u > $export_symbols'
+ _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W")
|| (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2
== "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print
\$ 1 } } }'\'' | sort -u > $export_symbols'
fi
;;
pw32*)
@@ -4927,7 +4949,7 @@
;;
cygwin* | mingw* | cegcc*)
case $cc_basename in
- cl*)
+ cl* | icl*)
_LT_TAGVAR(exclude_expsyms,
$1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
;;
*)
@@ -4984,15 +5006,15 @@

case $host_os in
cygwin* | mingw* | pw32* | cegcc*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
+ # Microsoft Visual C++ or Intel C++ Compiler.
if test yes != "$GCC"; then
with_gnu_ld=no
fi
;;
interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
+ # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
with_gnu_ld=yes
;;
openbsd* | bitrig*)
@@ -5156,6 +5178,7 @@
emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='@'
;;

interix[[3-9]]*)
@@ -5373,7 +5396,7 @@
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience |
awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 ==
"W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" }
else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
else
- _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V")
|| (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2
== "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' |
sort -u > $export_symbols'
+ _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e
'\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$
2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W")
|| (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2
== "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print
\$ 1 } } }'\'' | sort -u > $export_symbols'
fi
aix_use_runtimelinking=no

@@ -5556,12 +5579,12 @@

cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
+ # Microsoft Visual C++ or Intel C++ Compiler.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
case $cc_basename in
- cl*)
- # Native MSVC
+ cl* | icl*)
+ # Native MSVC or ICC
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=yes
@@ -5602,7 +5625,7 @@
fi'
;;
*)
- # Assume MSVC wrapper
+ # Assume MSVC and ICC wrapper
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
# Tell ltmain to make .lib files, not .a files.
@@ -5861,6 +5884,7 @@
emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='@'
;;

osf3*)
@@ -6631,8 +6655,8 @@

cygwin* | mingw* | pw32* | cegcc*)
case $GXX,$cc_basename in
- ,cl* | no,cl*)
- # Native MSVC
+ ,cl* | no,cl* | ,icl* | no,icl*)
+ # Native MSVC or ICC
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
@@ -6730,6 +6754,7 @@
emximp -o $lib $output_objdir/$libname.def'
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o
$output_objdir/${libname}_dll.a $output_objdir/$libname.def'
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='@'
;;

dgux*)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/m4/ltoptions.m4 new/deadbeef-1.12/m4/ltoptions.m4
--- old/deadbeef-1.10/m4/ltoptions.m4 2016-10-01 09:13:30.000000000 +0200
+++ new/deadbeef-1.12/m4/ltoptions.m4 2019-01-16 09:22:32.000000000 +0100
@@ -1,6 +1,6 @@
# Helper functions for option handling. -*- Autoconf -*-
#
-# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
+# Copyright (C) 2004-2005, 2007-2009, 2011-2018 Free Software
# Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/m4/ltsugar.m4 new/deadbeef-1.12/m4/ltsugar.m4
--- old/deadbeef-1.10/m4/ltsugar.m4 2016-10-01 09:13:30.000000000 +0200
+++ new/deadbeef-1.12/m4/ltsugar.m4 2019-01-16 09:22:32.000000000 +0100
@@ -1,6 +1,6 @@
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
#
-# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
+# Copyright (C) 2004-2005, 2007-2008, 2011-2018 Free Software
# Foundation, Inc.
# Written by Gary V. Vaughan, 2004
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/m4/ltversion.m4 new/deadbeef-1.12/m4/ltversion.m4
--- old/deadbeef-1.10/m4/ltversion.m4 2016-10-01 09:13:30.000000000 +0200
+++ new/deadbeef-1.12/m4/ltversion.m4 2019-01-16 09:22:32.000000000 +0100
@@ -1,6 +1,6 @@
# ltversion.m4 -- version numbers -*- Autoconf -*-
#
-# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2011-2018 Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
#
# This file is free software; the Free Software Foundation gives
@@ -9,15 +9,15 @@

# @configure_input@

-# serial 4179 ltversion.m4
+# serial 4221 ltversion.m4
# This file is part of GNU Libtool

-m4_define([LT_PACKAGE_VERSION], [2.4.6])
-m4_define([LT_PACKAGE_REVISION], [2.4.6])
+m4_define([LT_PACKAGE_VERSION], [2.4.6.42-b88ce])
+m4_define([LT_PACKAGE_REVISION], [2.4.6.42])

AC_DEFUN([LTVERSION_VERSION],
-[macro_version='2.4.6'
-macro_revision='2.4.6'
+[macro_version='2.4.6.42-b88ce'
+macro_revision='2.4.6.42'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/m4/lt~obsolete.m4 new/deadbeef-1.12/m4/lt~obsolete.m4
--- old/deadbeef-1.10/m4/lt~obsolete.m4 2016-10-01 09:13:30.000000000 +0200
+++ new/deadbeef-1.12/m4/lt~obsolete.m4 2019-01-16 09:22:32.000000000 +0100
@@ -1,6 +1,6 @@
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
#
-# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
+# Copyright (C) 2004-2005, 2007, 2009, 2011-2018 Free Software
# Foundation, Inc.
# Written by Scott James Remnant, 2004.
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/src/mpris.c new/deadbeef-1.12/src/mpris.c
--- old/deadbeef-1.10/src/mpris.c 2016-05-03 21:51:16.000000000 +0200
+++ new/deadbeef-1.12/src/mpris.c 2019-01-16 09:21:50.000000000 +0100
@@ -56,7 +56,6 @@
//* - Shuffle status *
//***********************
static int handleEvent (uint32_t id, uintptr_t ctx, uint32_t p1, uint32_t p2) {
- static int lastState = -1;
DB_functions_t *deadbeef = mprisData.deadbeef;

switch (id) {
@@ -67,32 +66,24 @@
case DB_EV_TRACKINFOCHANGED:
debug("DB_EV_TRACKINFOCHANGED event received");
emitMetadataChanged(-1, &mprisData);
+ emitCanGoChanged(&mprisData);
+ break;
+ case DB_EV_SELCHANGED:
+ case DB_EV_PLAYLISTSWITCHED:
+ emitCanGoChanged(&mprisData);
break;
case DB_EV_SONGSTARTED:
debug("DB_EV_SONGSTARTED event received");
emitMetadataChanged(-1, &mprisData);
- emitPlaybackStatusChanged(lastState =
OUTPUT_STATE_PLAYING);
+ emitPlaybackStatusChanged(OUTPUT_STATE_PLAYING,
&mprisData);
break;
case DB_EV_PAUSED:
debug("DB_EV_PAUSED event received");
- debug("PlayPause toggled... last state %d", lastState);
- switch (lastState) {
- case -1:
- emitPlaybackStatusChanged(lastState =
deadbeef->get_output()->state());
- break;
- case OUTPUT_STATE_PLAYING:
- emitPlaybackStatusChanged(lastState =
OUTPUT_STATE_PAUSED);
- break;
- case OUTPUT_STATE_PAUSED:
- emitPlaybackStatusChanged(lastState =
OUTPUT_STATE_PLAYING);
- break;
- default:
- break;
- }
+ emitPlaybackStatusChanged(p1 ? OUTPUT_STATE_PAUSED :
OUTPUT_STATE_PLAYING, &mprisData);
break;
case DB_EV_STOP:
debug("DB_EV_STOP event received");
- emitPlaybackStatusChanged(OUTPUT_STATE_STOPPED);
+ emitPlaybackStatusChanged(OUTPUT_STATE_STOPPED,
&mprisData);
break;
case DB_EV_VOLUMECHANGED:
debug("DB_EV_VOLUMECHANGED event received");
@@ -124,8 +115,8 @@
.plugin.api_vmajor = DB_API_VERSION_MAJOR,\
.plugin.api_vminor = DB_API_VERSION_MINOR,
.plugin.type = DB_PLUGIN_MISC,
- .plugin.version_major = 1,
- .plugin.version_minor = 8,
+ .plugin.version_major = PLUGIN_VERSION_MAJOR,
+ .plugin.version_minor = PLUGIN_VERSION_MINOR,
.plugin.id = "mpris",
.plugin.name ="MPRISv2 plugin",
.plugin.descr = "Communicate with other applications using D-Bus.",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/src/mprisServer.c new/deadbeef-1.12/src/mprisServer.c
--- old/deadbeef-1.10/src/mprisServer.c 2016-10-01 09:23:50.000000000 +0200
+++ new/deadbeef-1.12/src/mprisServer.c 2019-01-16 09:21:50.000000000 +0100
@@ -86,23 +86,25 @@
int id;
DB_playItem_t *track = NULL;
DB_functions_t *deadbeef = mprisData->deadbeef;
- ddb_playlist_t *pl = deadbeef->plt_get_curr();
+ ddb_playlist_t *pl = NULL;
GVariant *tmp;
GVariantBuilder *builder =
g_variant_builder_new(G_VARIANT_TYPE("a{sv}"));
+ int playlistIndex;

- if (track_id < 0) {
- track = deadbeef->streamer_get_playing_track();
+ track = deadbeef->streamer_get_playing_track();
+ if (track) {
+ pl =
deadbeef->plt_get_for_idx(deadbeef->streamer_get_current_playlist());
id = deadbeef->plt_get_item_idx(pl, track, PL_MAIN);
- } else {
- track = deadbeef->plt_get_item_for_idx(pl, track_id, PL_MAIN);
- id = track_id;
+ playlistIndex = deadbeef->streamer_get_current_playlist();
+ }
+ if (pl) {
+ deadbeef->plt_unref(pl);
}
- deadbeef->plt_unref(pl);

if (track != NULL) {
char buf[500];
int buf_size = sizeof(buf);
- int64_t duration =
(int64_t)deadbeef->pl_get_item_duration(track) * 1000000;
+ int64_t duration = deadbeef->pl_get_item_duration(track) *
1000000;
const char *album = deadbeef->pl_find_meta(track, "album");
const char *albumArtist = deadbeef->pl_find_meta(track,
"albumartist");
if (albumArtist == NULL)
@@ -117,7 +119,6 @@
const char *trackNumber = deadbeef->pl_find_meta(track,
"track");
const char *uri = deadbeef->pl_find_meta(track, ":URI");
const char *genres = deadbeef->pl_find_meta(track, "genre");
- const int playlistIndex = deadbeef->plt_get_curr_idx();

deadbeef->pl_lock();

@@ -126,7 +127,9 @@
g_variant_builder_add(builder, "{sv}", "mpris:trackid",
g_variant_new("o", buf));

debug("get Metadata duration: %" PRId64, duration);
- g_variant_builder_add(builder, "{sv}", "mpris:length",
g_variant_new("x", duration));
+ if (duration > 0) {
+ g_variant_builder_add(builder, "{sv}", "mpris:length",
g_variant_new("x", duration));
+ }

debug("get Metadata album: %s", album);
if (album != NULL) {
@@ -241,6 +244,9 @@

deadbeef->pl_unlock();
deadbeef->pl_item_unref(track);
+ } else {
+ debug("get Metadata trackid:
/org/mpris/MediaPlayer2/TrackList/NoTrack");
+ g_variant_builder_add(builder, "{sv}", "mpris:trackid",
g_variant_new("o", "/org/mpris/MediaPlayer2/TrackList/NoTrack"));
}
tmp = g_variant_builder_end(builder);
g_variant_builder_unref(builder);
@@ -248,6 +254,48 @@
return tmp;
}

+gboolean deadbeef_can_seek(DB_functions_t *deadbeef) {
+ gboolean can_seek = FALSE;
+ DB_output_t *output = deadbeef->get_output();
+ if (output) {
+ DB_playItem_t *track = deadbeef->streamer_get_playing_track();
+ if (track) {
+ can_seek = deadbeef->pl_get_item_duration(track) > 0;
+ deadbeef->pl_item_unref(track);
+ }
+ }
+ return can_seek;
+}
+
+static gboolean deadbeef_hasselectedorplayingtrack(struct MprisData *userData,
int offset) {
+ DB_functions_t *deadbeef = ((struct MprisData *)userData)->deadbeef;
+ ddb_playlist_t *pl = NULL;
+ DB_playItem_t *playing_track = deadbeef->streamer_get_playing_track();
+ int idx;
+ if (playing_track) {
+ pl =
deadbeef->plt_get_for_idx(deadbeef->streamer_get_current_playlist());
+ if (pl) {
+ idx = deadbeef->plt_get_item_idx(pl, playing_track,
PL_MAIN) + offset;
+ }
+ deadbeef->pl_item_unref(playing_track);
+ } else {
+ pl = deadbeef->plt_get_curr();
+ if (pl) {
+ idx = deadbeef->plt_get_cursor(pl, PL_MAIN) + offset;
+ }
+ }
+
+ if (pl) {
+ DB_playItem_t *track = deadbeef->plt_get_item_for_idx(pl, idx,
PL_MAIN);
+ deadbeef->plt_unref(pl);
+ if (track) {
+ deadbeef->pl_item_unref(track);
+ return TRUE;
+ }
+ }
+ return FALSE;
+}
+
static void onRootMethodCallHandler(GDBusConnection *connection, const char
*sender, const char *objectPath,
const char *interfaceName, const char
*methodName, GVariant *parameters,
GDBusMethodInvocation *invocation, void
*userData) {
@@ -258,6 +306,8 @@
g_dbus_method_invocation_return_value(invocation, NULL);
deadbeef->sendmessage(DB_EV_TERMINATE, 0, 0, 0);
} else if (strcmp(methodName, "Raise") == 0) {
+ GDesktopAppInfo *dskapp = g_desktop_app_info_new
("deadbeef.desktop");
+ g_app_info_launch ((GAppInfo *) dskapp, NULL, NULL, NULL);
g_dbus_method_invocation_return_value(invocation, NULL);
} else {
debug("Error! Unsupported method. %s.%s", interfaceName,
methodName);
@@ -275,7 +325,7 @@
if (strcmp(propertyName, "CanQuit") == 0) {
result = g_variant_new_boolean(TRUE);
} else if (strcmp(propertyName, "CanRaise") == 0) {
- result = g_variant_new_boolean(FALSE);
+ result = g_variant_new_boolean(TRUE);
} else if (strcmp(propertyName, "HasTrackList") == 0) {
result = g_variant_new_boolean(FALSE);
} else if (strcmp(propertyName, "Identity") == 0) {
@@ -376,7 +426,6 @@
}

deadbeef->pl_item_unref(track);
- emitSeeked(newPositionInMilliseconds);
}
g_dbus_method_invocation_return_value(invocation, NULL);
} else if (strcmp(methodName, "SetPosition") == 0) {
@@ -388,9 +437,9 @@

DB_playItem_t *track = deadbeef->streamer_get_playing_track();
if (track != NULL) {
- ddb_playlist_t *pl = deadbeef->plt_get_curr();
+ ddb_playlist_t *pl =
deadbeef->plt_get_for_idx(deadbeef->streamer_get_current_playlist());
int playid = deadbeef->plt_get_item_idx(pl, track,
PL_MAIN);
- int playlistIndex = deadbeef->plt_get_curr_idx();
+ int playlistIndex =
deadbeef->streamer_get_current_playlist();
char buf[200];
sprintf(buf, "/DeaDBeeF/%d/%d", playlistIndex, playid);
if (strcmp(buf, trackId) == 0) {
@@ -398,7 +447,6 @@
}
deadbeef->pl_item_unref(track);
deadbeef->plt_unref(pl);
- emitSeeked(deadbeef->streamer_get_playpos() * 1000.0);
}
g_dbus_method_invocation_return_value(invocation, NULL);
} else if (strcmp(methodName, "OpenUri") == 0) {
@@ -448,6 +496,8 @@
result = g_variant_new_string("Stopped");
break;
}
+ } else {
+ result = g_variant_new_string("Stopped");
}
} else if (strcmp(propertyName, "LoopStatus") == 0) {
int loop = deadbeef->conf_get_int("playback.loop",
PLAYBACK_MODE_LOOP_ALL);
@@ -494,15 +544,15 @@
deadbeef->pl_item_unref(track);
}
} else if (strcmp(propertyName, "CanGoNext") == 0) {
- result = g_variant_new_boolean(TRUE);
+ result =
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, 1));
} else if (strcmp(propertyName, "CanGoPrevious") == 0) {
- result = g_variant_new_boolean(TRUE);
+ result =
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, -1));
} else if (strcmp(propertyName, "CanPlay") == 0) {
- result = g_variant_new_boolean(TRUE);
+ result =
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, 0));
} else if (strcmp(propertyName, "CanPause") == 0) {
result = g_variant_new_boolean(TRUE);
} else if (strcmp(propertyName, "CanSeek") == 0) {
- result = g_variant_new_boolean(TRUE);
+ result = g_variant_new_boolean(deadbeef_can_seek(deadbeef));
} else if (strcmp(propertyName, "CanControl") == 0) {
result = g_variant_new_boolean(TRUE);
}
@@ -593,6 +643,26 @@
GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE_ARRAY);

g_variant_builder_add(builder, "{sv}", "Metadata",
getMetadataForTrack(trackId, userData));
+
+ GVariant *signal[] = {
+ g_variant_new_string(PLAYER_INTERFACE),
+ g_variant_builder_end(builder),
+ g_variant_new_strv(NULL, 0)
+ };
+
+ g_dbus_connection_emit_signal(globalConnection, NULL, OBJECT_NAME,
PROPERTIES_INTERFACE, "PropertiesChanged",
+ g_variant_new_tuple(signal, 3), NULL);
+
+ g_variant_builder_unref(builder);
+}
+
+void emitCanGoChanged(struct MprisData *userData) {
+ GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE_ARRAY);
+
+ g_variant_builder_add(builder, "{sv}", "CanPlay",
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, 0)));
+ g_variant_builder_add(builder, "{sv}", "CanGoNext",
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, 1)));
+ g_variant_builder_add(builder, "{sv}", "CanGoPrevious",
g_variant_new_boolean(deadbeef_hasselectedorplayingtrack(userData, -1)));
+
GVariant *signal[] = {
g_variant_new_string(PLAYER_INTERFACE),
g_variant_builder_end(builder),
@@ -605,8 +675,9 @@
g_variant_builder_unref(builder);
}

-void emitPlaybackStatusChanged(int status) {
+void emitPlaybackStatusChanged(int status, struct MprisData *userData) {
GVariantBuilder *builder = g_variant_builder_new(G_VARIANT_TYPE_ARRAY);
+ DB_functions_t *deadbeef = ((struct MprisData *)userData)->deadbeef;

switch (status) {
case OUTPUT_STATE_PLAYING:
@@ -620,6 +691,10 @@
g_variant_builder_add(builder, "{sv}",
"PlaybackStatus", g_variant_new_string("Stopped"));
break;
}
+
+ g_variant_builder_add(builder, "{sv}", "CanSeek",
g_variant_new_boolean(deadbeef_can_seek(deadbeef)));
+
+
GVariant *signal[] = {
g_variant_new_string(PLAYER_INTERFACE),
g_variant_builder_end(builder),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh
old/deadbeef-1.10/src/mprisServer.h new/deadbeef-1.12/src/mprisServer.h
--- old/deadbeef-1.10/src/mprisServer.h 2015-10-16 23:51:40.000000000 +0200
+++ new/deadbeef-1.12/src/mprisServer.h 2019-01-16 09:21:50.000000000 +0100
@@ -2,6 +2,7 @@
#define MPRISSERVER_H_

#include <gio/gio.h>
+#include <gio/gdesktopappinfo.h>

#define DDB_API_LEVEL 7
#define DDB_WARN_DEPRECATED 1
@@ -20,8 +21,9 @@
void emitVolumeChanged(float);
void emitSeeked(float);
void emitMetadataChanged(int, struct MprisData*);
-void emitPlaybackStatusChanged(int);
+void emitPlaybackStatusChanged(int, struct MprisData*);
void emitLoopStatusChanged(int);
void emitShuffleStatusChanged(int);
+void emitCanGoChanged(struct MprisData *);

#endif


< Previous Next >
This Thread
  • No further messages