vuplus_xbmc
10 years agoRevert "darwin: add missing NDEBUG/_DEBUG flags"
S. Davilla [Tue, 15 Oct 2013 14:20:26 +0000 (10:20 -0400)]
Revert "darwin: add missing NDEBUG/_DEBUG flags"
We already handle these flags in a differet area.

This reverts commit 4ab2c1c3cca1bc1d1fbd8f08878240ecfe2ff133.

10 years agoMerge pull request #3439 from huceke/raspberrypi
popcornmix [Wed, 16 Oct 2013 11:26:55 +0000 (04:26 -0700)]
Merge pull request #3439 from huceke/raspberrypi

[rbp/omxplayer] use correct timeout check

10 years agoMerge pull request #3435 from Karlson2k/regexp_rework_03
Karlson2k [Wed, 16 Oct 2013 10:54:08 +0000 (03:54 -0700)]
Merge pull request #3435 from Karlson2k/regexp_rework_03

RegExp rework - part 03

10 years ago[rbp/omxplayer] use correct timeout check
huceke [Wed, 16 Oct 2013 07:22:07 +0000 (09:22 +0200)]
[rbp/omxplayer] use correct timeout check

10 years agoMerge pull request #3438 from MartijnKaijser/string_locations
Martijn Kaijser [Wed, 16 Oct 2013 06:50:34 +0000 (23:50 -0700)]
Merge pull request #3438 from MartijnKaijser/string_locations

[language] add string locations

10 years ago[iOS] - for completeness add iPhone5c and iPhone5s models to our platform compatibili...
Memphiz [Wed, 16 Oct 2013 06:35:04 +0000 (08:35 +0200)]
[iOS] - for completeness add iPhone5c and iPhone5s models to our platform compatibility list

10 years agoMerge pull request #3433 from Karlson2k/regexp_rework_01a
jmarshallnz [Wed, 16 Oct 2013 00:38:04 +0000 (17:38 -0700)]
Merge pull request #3433 from Karlson2k/regexp_rework_01a

RegExp rework - part 01

10 years agoMerge pull request #3121 from Karlson2k/timeout_fix_01
jmarshallnz [Tue, 15 Oct 2013 23:34:08 +0000 (16:34 -0700)]
Merge pull request #3121 from Karlson2k/timeout_fix_01

Fix incorrect (non wrap safe) timeout process

10 years agoExternalPlayer: Small optimization of RegExp::GetReplaceString call
Karlson2k [Sun, 8 Sep 2013 17:15:20 +0000 (21:15 +0400)]
ExternalPlayer: Small optimization of RegExp::GetReplaceString call

10 years agoXBMCTinyXML: use new RegExp::RegFind
Karlson2k [Sun, 8 Sep 2013 12:57:45 +0000 (16:57 +0400)]
XBMCTinyXML: use new RegExp::RegFind

10 years agoRegExp::GetReplaceString: rewrote
Karlson2k [Mon, 9 Sep 2013 23:04:12 +0000 (03:04 +0400)]
RegExp::GetReplaceString: rewrote
* fix use of unallocated memory with not matched result
* support "\10"-"\20"
* wider use std::string

10 years agoMerge pull request #3427 from Karlson2k/langcodexpander_fix_01
Andreas Zelend [Tue, 15 Oct 2013 17:26:57 +0000 (10:26 -0700)]
Merge pull request #3427 from Karlson2k/langcodexpander_fix_01

LangCodeExpander: add MKV stream code

10 years agoLangCodeExpander: add MKV language code
Karlson2k [Mon, 14 Oct 2013 19:08:39 +0000 (23:08 +0400)]
LangCodeExpander: add MKV language code

10 years agoRegExp::RegFind: refactoring
Karlson2k [Sun, 8 Sep 2013 20:55:28 +0000 (00:55 +0400)]
RegExp::RegFind: refactoring
* store and use only needed part of subject string
* allow to specify number of characters to test
* check for invalid startoffset values
* unsigned type for startoffset

10 years agoRegExp: change return type of "RegExp::RegComp" from 'CRegExp*' to 'bool'
Karlson2k [Sat, 24 Aug 2013 19:27:43 +0000 (23:27 +0400)]
RegExp: change return type of "RegExp::RegComp" from 'CRegExp*' to 'bool'
Pointer is almost useless and just boolean is actually used

10 years agoRegExp: add functions overloads to deal with named subpatterns like with numbered...
Karlson2k [Sat, 24 Aug 2013 19:25:01 +0000 (23:25 +0400)]
RegExp: add functions overloads to deal with named subpatterns like with numbered subpatterns

10 years agoRegExp: add "const" to many functions
Karlson2k [Sat, 24 Aug 2013 18:00:55 +0000 (22:00 +0400)]
RegExp: add "const" to many functions

10 years agoRegExp: validate Sub number
Karlson2k [Sat, 24 Aug 2013 17:57:36 +0000 (21:57 +0400)]
RegExp: validate Sub number

10 years agoRegExp: add "IsValidSubNumber" private function
Karlson2k [Sun, 1 Sep 2013 16:47:53 +0000 (20:47 +0400)]
RegExp: add "IsValidSubNumber" private function

10 years agoRegExp: refactoring: move OVECCOUNT to class
Karlson2k [Sat, 24 Aug 2013 16:41:14 +0000 (20:41 +0400)]
RegExp: refactoring: move OVECCOUNT to class

10 years agoRegExp: report malloc errors
Karlson2k [Sat, 24 Aug 2013 11:16:53 +0000 (15:16 +0400)]
RegExp: report malloc errors

10 years agoRegExp: cosmetics
Karlson2k [Fri, 23 Aug 2013 20:13:42 +0000 (00:13 +0400)]
RegExp: cosmetics

10 years agoRegExp: Add GetNamedSubPatternNumber function
Karlson2k [Fri, 7 Jun 2013 16:30:57 +0000 (20:30 +0400)]
RegExp: Add GetNamedSubPatternNumber function

10 years agoRegExp: fix: don't use negative position for substring
Karlson2k [Sun, 9 Jun 2013 01:03:57 +0000 (05:03 +0400)]
RegExp: fix: don't use negative position for substring
This is for case that capture group (subpattern) was skipped during RE match

10 years agoRegExp: use PCRE_NEWLINE_ANY option for PCRE
Karlson2k [Thu, 22 Aug 2013 17:44:02 +0000 (21:44 +0400)]
RegExp: use PCRE_NEWLINE_ANY option for PCRE
This allow to have the same match regardless of current platform.

10 years agoReplace simple case calls of RegExp::GetReplaceString with much faster calls of RegEx...
Karlson2k [Sun, 8 Sep 2013 17:21:56 +0000 (21:21 +0400)]
Replace simple case calls of RegExp::GetReplaceString with much faster calls of RegExp::GetMatch

10 years agoMerge pull request #3431 from koying/quickpr
Memphiz [Tue, 15 Oct 2013 12:20:08 +0000 (05:20 -0700)]
Merge pull request #3431 from koying/quickpr

FIX: [stagefright] use the mirrors to host the android sources extract

10 years agoDVDInputStreamPVRManager: use correct timeout check
Karlson2k [Sat, 24 Aug 2013 20:29:56 +0000 (00:29 +0400)]
DVDInputStreamPVRManager: use correct timeout check

10 years agoXbmcThreads::EndTime: mark 'get' functions as 'const'
Karlson2k [Sat, 24 Aug 2013 20:08:46 +0000 (00:08 +0400)]
XbmcThreads::EndTime: mark 'get' functions as 'const'

10 years agoXbmcThreads::EndTime: MillisLeft should always be zero is 'totalWaitTime' is zero
Karlson2k [Sat, 24 Aug 2013 20:07:07 +0000 (00:07 +0400)]
XbmcThreads::EndTime: MillisLeft should always be zero is 'totalWaitTime' is zero

10 years agoXbmcThreads::EndTime: add useful 'get' functions
Karlson2k [Sat, 24 Aug 2013 20:05:00 +0000 (00:05 +0400)]
XbmcThreads::EndTime: add useful 'get' functions

10 years agoSoftAE: use correct timeout check
Karlson2k [Sun, 18 Aug 2013 19:17:24 +0000 (23:17 +0400)]
SoftAE: use correct timeout check

10 years agoPVRGUIInfo: use correct timeout check
Karlson2k [Mon, 19 Aug 2013 20:31:36 +0000 (00:31 +0400)]
PVRGUIInfo: use correct timeout check

10 years agoPeripheralCecAdapter: use correct timeout check
Karlson2k [Sun, 18 Aug 2013 15:18:58 +0000 (19:18 +0400)]
PeripheralCecAdapter: use correct timeout check

10 years agoDVDPlayer: use correct timeout check
Karlson2k [Sun, 8 Sep 2013 13:17:54 +0000 (17:17 +0400)]
DVDPlayer: use correct timeout check

10 years agoRssReader::Process: use correct timeout check
Karlson2k [Sun, 18 Aug 2013 14:23:53 +0000 (18:23 +0400)]
RssReader::Process: use correct timeout check

10 years agoSystemClock:EndTime: eliminate even very small chance that infinite timer will expire
Karlson2k [Sun, 18 Aug 2013 19:13:30 +0000 (23:13 +0400)]
SystemClock:EndTime: eliminate even very small chance that infinite timer will expire

10 years agoFIX: [stagefright] use the mirrors to host the android sources extract
Chris "Koying" Browet [Mon, 14 Oct 2013 14:18:24 +0000 (16:18 +0200)]
FIX: [stagefright] use the mirrors to host the android sources extract

10 years agoCGUIWindowFoo: properly initialize m_dlgProgress pointer to NULL (fixes #14635)
montellese [Tue, 15 Oct 2013 11:04:41 +0000 (13:04 +0200)]
CGUIWindowFoo: properly initialize m_dlgProgress pointer to NULL (fixes #14635)

10 years agosettings: fix parsing of "help" attribute for categories
montellese [Tue, 15 Oct 2013 08:49:30 +0000 (10:49 +0200)]
settings: fix parsing of "help" attribute for categories

10 years agoMerge pull request #3426 from Karlson2k/langinfo_fix_02
jmarshallnz [Tue, 15 Oct 2013 06:48:31 +0000 (23:48 -0700)]
Merge pull request #3426 from Karlson2k/langinfo_fix_02

FIX: LangInfo: don't try to resolve language "default"

10 years agoMerge pull request #3425 from Karlson2k/stringutils_optim_01
jmarshallnz [Tue, 15 Oct 2013 06:47:39 +0000 (23:47 -0700)]
Merge pull request #3425 from Karlson2k/stringutils_optim_01

Optimization of StringUtils::EqualsNoCase

10 years agoosx: fixed build under 10.6.8 were memmem from libmicrohttpd collides with memmem...
S. Davilla [Tue, 15 Oct 2013 06:42:03 +0000 (02:42 -0400)]
osx: fixed build under 10.6.8 were memmem from libmicrohttpd collides with memmem in libgnutils

10 years agodarwin: add missing NDEBUG/_DEBUG flags
davilla [Tue, 15 Oct 2013 02:21:22 +0000 (22:21 -0400)]
darwin: add missing NDEBUG/_DEBUG flags

10 years agodroid: mediacodec, add temp logging
S. Davilla [Tue, 15 Oct 2013 02:04:34 +0000 (22:04 -0400)]
droid: mediacodec, add temp logging

10 years agoStringUtils::EqualsNoCase: optimization
Karlson2k [Mon, 14 Oct 2013 18:13:32 +0000 (22:13 +0400)]
StringUtils::EqualsNoCase: optimization
Almost equal speed (compared to old version) when strings are full different case.
Much faster if some chars in strings have same case.

10 years agoLangInfo: don't try to resolve language "default"
Karlson2k [Mon, 14 Oct 2013 18:03:58 +0000 (22:03 +0400)]
LangInfo: don't try to resolve language "default"

10 years agoCGUIWindowSettingsCategory: fix description not being updated when moving from a...
montellese [Mon, 14 Oct 2013 10:59:55 +0000 (12:59 +0200)]
CGUIWindowSettingsCategory: fix description not being updated when moving from a setting to a category

10 years ago[confluence] fix white haze on texture in video OSD
Martijn Kaijser [Sun, 13 Oct 2013 12:53:21 +0000 (14:53 +0200)]
[confluence] fix white haze on texture in video OSD

10 years agoMerge pull request #3417 from elupus/mpeg2sd
Joakim Plate [Sun, 13 Oct 2013 12:20:00 +0000 (05:20 -0700)]
Merge pull request #3417 from elupus/mpeg2sd

dvdplayer: disallow hw accel of SD mpeg2's

10 years agoMerge pull request #3395 from garbear/invalid-dates
Lars Op den Kamp [Sun, 13 Oct 2013 12:17:36 +0000 (05:17 -0700)]
Merge pull request #3395 from garbear/invalid-dates

Fix infinite loop while viewing "EPG: Timeline" window

10 years agodvdplayer: disallow hw accel of SD mpeg2's
Joakim Plate [Sun, 13 Oct 2013 11:12:03 +0000 (13:12 +0200)]
dvdplayer: disallow hw accel of SD mpeg2's

They are many dvd rips with non profile conformant streams that just
give garbage when rune using the hw decoder.

10 years agoMerge pull request #3408 from Karlson2k/win32_fix_path_slashes_small
jmarshallnz [Sun, 13 Oct 2013 09:27:32 +0000 (02:27 -0700)]
Merge pull request #3408 from Karlson2k/win32_fix_path_slashes_small

Win32: fix path slashes (diet version)

10 years agodvdplayer: remove resume players on CloseFile, fixes some small portion of audio...
Rainer Hochecker [Sun, 13 Oct 2013 08:20:41 +0000 (10:20 +0200)]
dvdplayer: remove resume players on CloseFile, fixes some small portion of audio being played when stopping a paused video

10 years agofixed crash when resetting the epg while the pvr manager is not running. trac: 14448
Lars Op den Kamp [Sun, 13 Oct 2013 08:14:50 +0000 (10:14 +0200)]
fixed crash when resetting the epg while the pvr manager is not running. trac: 14448

10 years agoMerge pull request #3411 from elupus/pvr_seek
Joakim Plate [Sun, 13 Oct 2013 08:18:21 +0000 (01:18 -0700)]
Merge pull request #3411 from elupus/pvr_seek

Pvr seek

10 years agoMerge pull request #3414 from elupus/upnp_fixes
Joakim Plate [Sun, 13 Oct 2013 08:17:53 +0000 (01:17 -0700)]
Merge pull request #3414 from elupus/upnp_fixes

Upnp fixes

10 years agoMerge pull request #3410 from elupus/libass0.10.1
Joakim Plate [Sun, 13 Oct 2013 08:17:13 +0000 (01:17 -0700)]
Merge pull request #3410 from elupus/libass0.10.1

libass: bump libass to 0.10.1

10 years agoMerge pull request #3403 from Karlson2k/string_utils_fix_01
jmarshallnz [Sat, 12 Oct 2013 23:48:48 +0000 (16:48 -0700)]
Merge pull request #3403 from Karlson2k/string_utils_fix_01

StringUtils: fix TrimLeft and TrimRight functions with UTF-8 strings

10 years agoMerge pull request #2566 from louis89/master
jmarshallnz [Sat, 12 Oct 2013 23:33:50 +0000 (16:33 -0700)]
Merge pull request #2566 from louis89/master

Added SSL for MySQL database connections

10 years agoMerge pull request #2876 from pieh/radiotexturefocus
jmarshallnz [Sat, 12 Oct 2013 23:32:42 +0000 (16:32 -0700)]
Merge pull request #2876 from pieh/radiotexturefocus

GUIRadioButton: add separate textures for radio image for focus/unfocus states

10 years agoupnp: avoid crashing when upnp remote player times out
Joakim Plate [Sat, 12 Oct 2013 16:14:28 +0000 (18:14 +0200)]
upnp: avoid crashing when upnp remote player times out

Platinum stores a callback that can end up being called after the
object have been deleted.

10 years agoMerge pull request #3157 from adamreeve/album_artist_fanart
Martijn Kaijser [Sat, 12 Oct 2013 15:56:07 +0000 (08:56 -0700)]
Merge pull request #3157 from adamreeve/album_artist_fanart

Use album artist fanart when there is no artist fanart

10 years agoupnp: prioritize local lan resource when getting playback to use
Joakim Plate [Sat, 12 Oct 2013 14:56:53 +0000 (16:56 +0200)]
upnp: prioritize local lan resource when getting playback to use

10 years agoHDFile: remove CStdString, update for win32
Karlson2k [Fri, 4 Oct 2013 00:32:34 +0000 (04:32 +0400)]
HDFile: remove CStdString, update for win32

10 years agoHDDirectory: error checks, update for Win32
Karlson2k [Thu, 3 Oct 2013 22:58:08 +0000 (02:58 +0400)]
HDDirectory: error checks, update for Win32

10 years ago[win32] WINFileSMB::GetLocal: update, remove CStdString
Karlson2k [Thu, 3 Oct 2013 14:31:40 +0000 (18:31 +0400)]
[win32] WINFileSMB::GetLocal: update, remove CStdString

10 years ago[win32] WINSMBDirectory: Update, remove CStdString
Karlson2k [Wed, 2 Oct 2013 22:45:06 +0000 (02:45 +0400)]
[win32] WINSMBDirectory: Update, remove CStdString

10 years ago[win32] WIN32Util: add "ConvertPathToWin32Form()" function
Karlson2k [Thu, 3 Oct 2013 15:59:40 +0000 (19:59 +0400)]
[win32] WIN32Util: add "ConvertPathToWin32Form()" function

10 years agoURIUtils: add 'FixSlashesAndDups()' function
Karlson2k [Sun, 6 Oct 2013 15:37:16 +0000 (19:37 +0400)]
URIUtils: add 'FixSlashesAndDups()' function

10 years agopvr: make sure we check seekability using the dedicated function
Joakim Plate [Sat, 12 Oct 2013 11:19:02 +0000 (13:19 +0200)]
pvr: make sure we check seekability using the dedicated function

10 years agopvr: make sure we ask the alternate stream for seekability
Joakim Plate [Sat, 12 Oct 2013 11:09:28 +0000 (13:09 +0200)]
pvr: make sure we ask the alternate stream for seekability

10 years ago[jenkins/buildsteps] - add scripts for android x86
Memphiz [Fri, 11 Oct 2013 14:25:02 +0000 (16:25 +0200)]
[jenkins/buildsteps] - add scripts for android x86

10 years ago[WIN32] fixed: check for the error return code instead if XBMC.exe exist. Latter...
WiSo [Sat, 12 Oct 2013 10:01:04 +0000 (12:01 +0200)]
[WIN32] fixed: check for the error return code instead if XBMC.exe exist. Latter one won't fetch build failures for the other projects.

10 years agoMerge pull request #2978 from smspillaz/wayland-gsoc-1
Martijn Kaijser [Fri, 11 Oct 2013 20:53:27 +0000 (13:53 -0700)]
Merge pull request #2978 from smspillaz/wayland-gsoc-1

Implement support for display on Wayland compositors

10 years agoSplit up TestEGLNativeTypeWayland.cpp into separate translation units.
Sam Spilsbury [Sat, 31 Aug 2013 12:10:14 +0000 (20:10 +0800)]
Split up TestEGLNativeTypeWayland.cpp into separate translation units.

Where we don't generate the xbmc_wayland test extension, those tests
depending on it are disabled

10 years agoAdd key repeat tests
Sam Spilsbury [Mon, 19 Aug 2013 14:13:30 +0000 (22:13 +0800)]
Add key repeat tests

10 years agoDo a reverse lookup on the keymap instead of hardcoding keys
Sam Spilsbury [Mon, 19 Aug 2013 13:45:15 +0000 (21:45 +0800)]
Do a reverse lookup on the keymap instead of hardcoding keys

10 years agoGive xbmc::wayland::Keyboard the responsibility of managing the keymap.
Sam Spilsbury [Mon, 19 Aug 2013 12:25:17 +0000 (20:25 +0800)]
Give xbmc::wayland::Keyboard the responsibility of managing the keymap.

The fact that we recieve the keymap as a string in shared memory is
really a wayland-specific implementation detail and not an abstraction
suitable for KeyboardProcessor. All KeyboardProcessor needs to care
about is receiving a keymap of some sort.

10 years agoAdd unit tests for PointerProcessor
Sam Spilsbury [Sun, 18 Aug 2013 15:28:24 +0000 (23:28 +0800)]
Add unit tests for PointerProcessor

10 years agoAdded input acceptance tests
Sam Spilsbury [Sun, 18 Aug 2013 13:16:08 +0000 (21:16 +0800)]
Added input acceptance tests

10 years agoSplit WinEventsWayland.cpp into separate files and refactor.
Sam Spilsbury [Sun, 18 Aug 2013 04:15:35 +0000 (12:15 +0800)]
Split WinEventsWayland.cpp into separate files and refactor.

Rename WaylandInput to InputFactory and WaylandEventLoop to Loop.
Put each of them in the appropriate namespace. WaylandEventLoop
now delegates event queue callbacks to an injected EventListener
so as to decouple it from the rest of XBMC.

10 years agoAdd tests that depend on xbmc_wayland
Sam Spilsbury [Sat, 17 Aug 2013 11:18:05 +0000 (19:18 +0800)]
Add tests that depend on xbmc_wayland

10 years agoAdd wayland object listeners.
Sam Spilsbury [Sat, 17 Aug 2013 06:23:09 +0000 (14:23 +0800)]
Add wayland object listeners.

We will need direct access to some wayland objects in testing,
some of which are only available to the client itself. Add some
hooks to the client classes to advertise via a singleton via
any other interested code that some wayland object became available.

Test that we received the xbmc_wayland object after connection and
sync.

10 years agoLazy-bind global interfaces.
Sam Spilsbury [Sat, 17 Aug 2013 06:01:18 +0000 (14:01 +0800)]
Lazy-bind global interfaces.

Make all global-interfaces lazy-binding. This means that we store
the result of any incoming wl_registry.global event and then actually
process it later when we call wl_registry.bind after trying to
access the global object for the first time.

10 years agoInitial wayland test framework
Sam Spilsbury [Sat, 17 Aug 2013 02:33:48 +0000 (10:33 +0800)]
Initial wayland test framework

Secondary Author: Cory Fields

wayland: Fixup test building

- Build tests in the test dir, not the main make.
- Guard objects and code appropriately
- Remove support for all but weston += 1.0.99. pkg-config and versioning were
  not implemented before that anyway.

10 years agoOptionally resolve wl_display_read_events and wl_display_prepare_read
Sam Spilsbury [Wed, 14 Aug 2013 15:15:31 +0000 (23:15 +0800)]
Optionally resolve wl_display_read_events and wl_display_prepare_read

10 years agoAdd wayland-specific workaround for an intel driver bug.
Sam Spilsbury [Thu, 15 Aug 2013 11:49:37 +0000 (19:49 +0800)]
Add wayland-specific workaround for an intel driver bug.

Add EGL_QUIRK_DONT_TRUST_SURFACE_SIZE. The intel driver in Ubuntu Raring is
broken and returns a surface size of -1, -1. This is only temporary.

10 years ago[aml] add macro for optional export resolving
Cory Fields [Wed, 3 Oct 2012 23:41:17 +0000 (19:41 -0400)]
[aml] add macro for optional export resolving

10 years agoRead or dispatch events in a separate thread.
Sam Spilsbury [Mon, 12 Aug 2013 04:32:11 +0000 (12:32 +0800)]
Read or dispatch events in a separate thread.

MessagePump() should not be a blocking operation

Because wl_display_read_events was only introduced in wayland 1.2, we need
to support two methods of making MessagePump() nonblocking.

version_11::EventQueueStrategy dispatches the whole event queue and gathers
the resulting XBMC_Events or other messages wrapped up into Action functors
in its reader thread. It then dispatches these to XBMC in the main thread.

version_12::EventQueueStrategy simply reads the wayland connection fd and
then flushes the output buffer and dispatches any read events in the
main thread.

In either version, the wayland listeners may be running in a separate thread.

As such, there is no guaruntee that it is safe to mutate the state of
objects in the xbmc::wayland namespace, at least until
version_11::EventQueueStrategy can be dropped.
XBMCConnection::WaitForSynchronize() should also only be called from
the main thread and not the dispatch thread as it is responsible for
setting synchronized == true

10 years agoListen for a new wl_keyboard from wl_seat_listener and create an
Sam Spilsbury [Thu, 25 Jul 2013 05:59:25 +0000 (13:59 +0800)]
Listen for a new wl_keyboard from wl_seat_listener and create an
XKBKeymap implementing wayland::Keymap. This class keeps track
of the keyboard state and MUST be updated every time a modifier or
a key is pressed (eg, every time we get an event from the protocol).

KeyboardProcessor implements the logic of converting XKB keysyms to
XBMC keysyms. It also changes the focus state of the window and
delivers key events to the XBMC event subsystem.

TimeoutManager and WaylandEventLoop are just a simple abstraction for
adding timeouts to the poll () / wl_display_dispatch () mainloop, in
place so that we can implement key repeat

10 years agoAdded support for pointer events and hide the system pointer.
Sam Spilsbury [Tue, 16 Jul 2013 01:48:09 +0000 (18:48 -0700)]
Added support for pointer events and hide the system pointer.

Created classes xbmc::wayland::Pointer to wrap wl_pointer and
xbmc::PointerProcessor implementing xbmc::wayland::PointerListener
which contains the logic for converting wayland button and pointer
events into xbmc events.

Made xbmc::wayland::Seat wait for a pointer to appear and initialize
a pointer in WaylandInput.

Call wl_pointer_set_cursor as soon as the pointer enters our surface
as it is undefined before that.

10 years agoAdded basic input framework.
Sam Spilsbury [Tue, 16 Jul 2013 01:38:07 +0000 (18:38 -0700)]
Added basic input framework.

Added xw::Seat to wrap wl_seat and WaylandInput to be the central
control object for keyboard and mouse input.

EventListener is a pure virtual class that WaylandInput delegates
to. EventDispatch implements EventListener and forwards input
and focus events on to XBMC.

Let WinEventsWayland manage the wl_seat * from EGLNativeTypeWayland
once it appears

10 years agoAdded support for multiple outputs and go fullscreen by default.
Sam Spilsbury [Tue, 16 Jul 2013 01:19:58 +0000 (18:19 -0700)]
Added support for multiple outputs and go fullscreen by default.

Created new object xbmc::wayland::Output to wrap wl_output. Gather
all the available modes and report thoses in ProbeResolutions. Resize
the window in SetNativeResolution and set a new opaque region for it.

Remove all outputs on DestroyNativeDisplay()

10 years agoAdded initial support for displaying on Wayland compositors.
Sam Spilsbury [Tue, 16 Jul 2013 01:11:20 +0000 (18:11 -0700)]
Added initial support for displaying on Wayland compositors.

SDL and X11 builds are disabled when using the --enable-wayland
switch.

EGLNativeTypeWayland is an implementation of EGLNativeType which
connects to a running wayland compositor if possible and starts
rendering in a new surface.

WinEventsWayland polls the wayland display for new events and updates
the main surface.

The wayland client libraries are loaded dynamically and their functions
should not be used directly. Instead, IDllWaylandClient should be injected
into any objects that need to call functions in those libraries. Because
the autogenerated protocol functions are inline in the header files
and not available to be looked up, the protocol needs to be used directly.

Some of the helpers there are:

 1. wayland::protocol::CreateWaylandObject -> creates a wl_proxy casted
    to the result type with a specific wl_interface as looked up in
    the client library.
 2. wayland::protocol::CallMethodOnWaylandObject -> calls wl_proxy_marshal
    with on the proxy with the specified opcode and arguments
 3. wayland::protocol::AddListenerOnWaylandObject -> adds a wl_listener
    to the wl_proxy
 4. wayland::protocol::DestroyWaylandObject -> calls wl_proxy_destroy
    on the proxy.

There may be some cases where additional constructor or destructor functions
might need to be called before or after CreateWaylandObject and
DestroyWaylandObject. Developers should consult the autogenerated
wayland-*-protocol.h headers to determine the expected call order.

XBMCSurface and XBMCConnection wrap most of the wayland connection
and surface creation / destruction and provide outputs for getting
the current resolution and EGL surface.

There is currently no support for keyboard input, mouse input or
multiple monitors.

10 years agojsonrpc: fix JSON schema for Favourite.Details.Favourite
montellese [Fri, 11 Oct 2013 15:26:01 +0000 (17:26 +0200)]
jsonrpc: fix JSON schema for Favourite.Details.Favourite

10 years agofixup, borked fix
S. Davilla [Fri, 11 Oct 2013 15:27:22 +0000 (11:27 -0400)]
fixup, borked fix

10 years agolibass: bump libass to 0.10.1
Joakim Plate [Fri, 11 Oct 2013 15:18:40 +0000 (17:18 +0200)]
libass: bump libass to 0.10.1

10 years agodroid: temp fix runtime crash on load, disable gmp
S. Davilla [Fri, 11 Oct 2013 13:53:09 +0000 (09:53 -0400)]
droid: temp fix runtime crash on load, disable gmp
Cannot load library: soinfo_relocate(linker.cpp:975):
cannot locate symbol "__gmp_binvert_limb_table" referenced by "libavformat-54-arm.so"...

10 years agoMerge pull request #3393 from ronie/confluence-labels
Martijn Kaijser [Fri, 11 Oct 2013 09:53:50 +0000 (02:53 -0700)]
Merge pull request #3393 from ronie/confluence-labels

[Confluence] get rid of SCRIPTXXX labels