From 3189bae15b9ffdaa08d651110b04088e68256b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 29 Oct 2012 20:25:23 +0100 Subject: [PATCH] Add support for xine 1.2 libraries Thanks to Francois Andriot (cherry picked from commit 222c53bf1110082431655015991fbdfdcc705bde) --- kaffeine/src/player-parts/xine-part/kxinewidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp index f0cddb0..ea8e72d 100644 --- a/kaffeine/src/player-parts/xine-part/kxinewidget.cpp +++ b/kaffeine/src/player-parts/xine-part/kxinewidget.cpp @@ -2642,7 +2642,11 @@ void KXineWidget::getAutoplayPlugins(TQStringList& autoPlayList) const bool KXineWidget::getAutoplayPluginURLS(const TQString& plugin, TQStringList& list) { +#if XINE_MAJOR_VERSION > 1 || ( XINE_MAJOR_VERSION == 1 && XINE_MINOR_VERSION >= 2 ) + const char* const* urls = NULL; +#else char** urls = NULL; +#endif int num; int i = 0;