From 40fbebd5ad5b6b8087c4b1a716cd0c42795b3923 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Tue, 24 Feb 2015 12:25:34 -0800 Subject: [PATCH] Add check for libvlc_set_app_id being available as its only from 2.1.0 (this allows tomahawk to be built with older libvlc on something like Ubuntu 12.04 --- src/libtomahawk/audio/AudioOutput.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libtomahawk/audio/AudioOutput.cpp b/src/libtomahawk/audio/AudioOutput.cpp index 5cb35e85d..5c6544787 100644 --- a/src/libtomahawk/audio/AudioOutput.cpp +++ b/src/libtomahawk/audio/AudioOutput.cpp @@ -95,8 +95,10 @@ AudioOutput::AudioOutput( QObject* parent ) libvlc_set_user_agent( m_vlcInstance, TOMAHAWK_APPLICATION_NAME, TOMAHAWK_APPLICATION_NAME "/" TOMAHAWK_VERSION ); // FIXME: icon is named tomahawk, so we need the lowercase application name +#if (LIBVLC_VERSION_INT >= LIBVLC_VERSION(2, 1, 0, 0)) libvlc_set_app_id( m_vlcInstance, "org.tomahawk-player.desktop", TOMAHAWK_VERSION, "tomahawk" ); +#endif