1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-18 23:09:42 +01:00

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

This commit is contained in:
Anton Romanov 2015-02-24 12:25:34 -08:00
parent db67c18121
commit 40fbebd5ad

View File

@ -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