platform/upstream/qtmultimedia.git
12 years agoadd #include <unistd.h> to classes which use ::getpid
Thomas Senyk [Thu, 12 Apr 2012 15:44:10 +0000 (17:44 +0200)]
add #include <unistd.h> to classes which use ::getpid

I got  "error: ‘::getpid’ has not been declared" and solved it with
adding #include <unistd.h>

Updated version of change 23032.
Now including <sys/types.h> as well.

Change-Id: I969845e1c4d5b72a223f6f4e0050b2fb342b8f17
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUse QtMultimedia 5.0 in the QML Video element doc.
Thomas McGuire [Thu, 5 Apr 2012 13:53:59 +0000 (15:53 +0200)]
Use QtMultimedia 5.0 in the QML Video element doc.

Change-Id: I5e549b321a549d2b4abc058cf08d81329df3562e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoIgnore QtCreator user settings.
Thomas McGuire [Thu, 12 Apr 2012 13:41:11 +0000 (15:41 +0200)]
Ignore QtCreator user settings.

Change-Id: I0aed0177733e3804801ec2aba5c974d740118f42
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoTranslated corresponding Gstreamer errors to QAudioDecoder::FormatError
bigbearzhu [Thu, 12 Apr 2012 05:40:32 +0000 (15:40 +1000)]
Translated corresponding Gstreamer errors to QAudioDecoder::FormatError

Change-Id: I34834075ea98c163251e7a9aca1fb7bc486ad7e9
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMove QAudioDecoder to public.
Michael Goddard [Tue, 10 Apr 2012 11:33:00 +0000 (21:33 +1000)]
Move QAudioDecoder to public.

To get better feedback between alpha & beta.

Change-Id: I3620825fb9c2bb9de69951cf1d583b191d62cb0d
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix a number of doc errors and warnings.
Michael Goddard [Tue, 10 Apr 2012 10:19:34 +0000 (20:19 +1000)]
Fix a number of doc errors and warnings.

* Document a few missing classes/functions/methods
* Fix a number of QML snippets that wouldn't work as standalone snippets
* Add files to .pro so they show up in Creator..

Still the mysterious lack of controls dir documentation persists :/

Change-Id: I57162371a4d966e4db5bdb1b71d1baf9c0ca57c3
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded integration test for subsequent playback to media player backend.
Lev Zelenskiy [Mon, 2 Apr 2012 05:06:57 +0000 (15:06 +1000)]
Added integration test for subsequent playback to media player backend.

Change-Id: If060dd78e595b52bbb1c0fb65ede7c84ced873b0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd .gitignore file
Yuchen Deng [Sun, 8 Apr 2012 12:57:03 +0000 (20:57 +0800)]
Add .gitignore file

Change-Id: Icb5f1fd8879a7a99af688d51fd02f8c30c9bdb14
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoSmall typo edit
dakovaci [Tue, 3 Apr 2012 06:52:58 +0000 (16:52 +1000)]
Small typo edit

Just some small eddits

Change-Id: I3e1e2a2890f7b8cb2d5933a25c41aaa53bc62867
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoRemoved some systemtests
dakovaci [Tue, 3 Apr 2012 06:39:27 +0000 (16:39 +1000)]
Removed some systemtests

Removed pause video recording and video settings

Change-Id: Id763ce9c26c5b6f7b9b122ee1b4b80b0c9c926fa
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoTypo fix
dakovaci [Tue, 3 Apr 2012 06:49:09 +0000 (16:49 +1000)]
Typo fix

Just some small eddits to typo errors

Change-Id: I374667dc66b8ea76595a98a519599df54b845775
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoUpdated integration test to check initial volume.
Lev Zelenskiy [Wed, 4 Apr 2012 03:58:55 +0000 (13:58 +1000)]
Updated integration test to check initial volume.

Change-Id: Ida1eb24a6e09d31048722299104616fbaa26dffa
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGStreamer backend: set initial volume and mute values.
Lev Zelenskiy [Wed, 4 Apr 2012 03:47:26 +0000 (13:47 +1000)]
GStreamer backend: set initial volume and mute values.

For each stream set initial volume to 100 and mute state to FALSE.

Change-Id: I529a82c12f0fd65277f97193b3feed7f9782e4c0
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdated a lot of minor fixes to the docs and removed warnings from qdoc
Jonas Rabbe [Tue, 3 Apr 2012 05:55:55 +0000 (15:55 +1000)]
Updated a lot of minor fixes to the docs and removed warnings from qdoc

Change-Id: Ib7fd75fb93c038f9e8fa9d71b6ad01fb27b97622
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoEnsure GstBus is available during GstBusHelper lifetime.
Dmytro Poplavskiy [Wed, 4 Apr 2012 04:47:57 +0000 (14:47 +1000)]
Ensure GstBus is available during GstBusHelper lifetime.

Change-Id: I6fc867e3c7a6ad1f83938d3dc0500ea339c39fe2
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoReset playbin state to NULL on end of stream signal.
Lev Zelenskiy [Fri, 30 Mar 2012 05:20:46 +0000 (15:20 +1000)]
Reset playbin state to NULL on end of stream signal.

According to GStreamer documentation "playbin should be set
back to READY or NULL state, then the "uri" property should be set
to the new location and then playbin be set to PLAYING state again."
We reset playbin to NULL state and then call setMedia() again
in case playback is restarted.

Change-Id: If7efbf8d88e0aad461c3d1d8b802c6621af221f7
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdded typeinfo for audio engine
Jonas Rabbe [Wed, 4 Apr 2012 04:22:06 +0000 (14:22 +1000)]
Added typeinfo for audio engine

QML imports that load from a plugin need to have typeinfo so that
Qt Creator can do inline type checking and code completion.

Also adds convenience make target for updating the typeinfo.

Change-Id: I4c3a93bf8b8925032c0d03c99df277280f03376e
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd typeinfo for the declarative plugin for Qt Multimedia
Jonas Rabbe [Tue, 3 Apr 2012 22:30:28 +0000 (08:30 +1000)]
Add typeinfo for the declarative plugin for Qt Multimedia

For Qt Creator to correctly typecheck and auto-complete QML types and
objects, the typeinfo must be exported and added to the qmldir file.
This patch contains those changes, and an update to make updating the
typeinfo file easier in the future.

Change-Id: I988f22d3ca81839662cce4aed9d5297f7c5fbf32
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFixed major mem leak of unfreed GstTagList when playing ogg files.
bigbearzhu [Fri, 30 Mar 2012 06:07:49 +0000 (16:07 +1000)]
Fixed major mem leak of unfreed GstTagList when playing ogg files.

Could cause serious leak if ogg files contain coverart image.
Should use gst_tag_list_fee to free the used taglist.

Change-Id: I8f7b799729b84ad9a2ca45bc3e31f37a987a5885
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoEdited the radio system teste
dakovaci [Tue, 3 Apr 2012 02:59:03 +0000 (12:59 +1000)]
Edited the radio system teste

Added some missing detail

Change-Id: I127a427e670196c80654eb4aae6cf7da4598f4ca
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoadded locksreen, hw volume and headset systemtests to audio
dakovaci [Tue, 3 Apr 2012 01:40:26 +0000 (11:40 +1000)]
added locksreen, hw volume and headset systemtests to audio

An addition to the audio systemtests

Change-Id: I5b0625e25b4e11c6971eb8bc5bd09c2d0597c5cb
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoMoved video plugins around to prevent accidental unloading
Jonas Rabbe [Wed, 28 Mar 2012 05:58:59 +0000 (15:58 +1000)]
Moved video plugins around to prevent accidental unloading

If several different plugins are located in the same place, and are
loaded by different instances of QFactoryLoader, like we use, then
plugins that are used elsewhere can be unloaded.
By ensuring that the plugins are alone in their directory, then
they will not have this problem.

Change-Id: Id95b81ddf46435278fe43a4769e2d39f6b973a84
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
12 years agoFix tst_qmediaplayerbackend construction test.
Ling Hu [Fri, 30 Mar 2012 05:09:37 +0000 (15:09 +1000)]
Fix tst_qmediaplayerbackend construction test.

Availibility test should use QTRY_VERIFY instead of VERIFY,
should not assume available immediately after constructing.

Change-Id: Ic267ac9718aeecfe186d593af5439c1ffcf48e94
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded some radio systemtests, edited
dakovaci [Mon, 19 Mar 2012 05:10:36 +0000 (15:10 +1000)]
Added some radio systemtests, edited

Added some detail to the radio systemtest

Edited the Camera systemtest

Change-Id: I61c603e5de8e50400053da26563b937756aea316
Reviewed-by: Daron Andrew Edie <daron.edie@nokia.com>
12 years agoFixed: Streams information is not updated properly for RTSP streams.
Lev Zelenskiy [Wed, 28 Mar 2012 05:12:04 +0000 (15:12 +1000)]
Fixed: Streams information is not updated properly for RTSP streams.

Changes to QGstreamerPlayerSession:
Handle video-changed, audio-changed, and text-changed signals.
Call getStreamsInfo() to update streams information.

Change-Id: I8bfead3268771245635424b5f1debff624bbe038
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdd deleteLater() test to tst_qmediaplayerbackend
Sami Rosendahl [Tue, 27 Mar 2012 08:09:10 +0000 (11:09 +0300)]
Add deleteLater() test to tst_qmediaplayerbackend

Task-number: QTBUG-24927
Change-Id: Ic58a33aad9038af0325d20bed16d3e70d7e15b5a
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDeliver GStreamer signals through Qt event loop
Sami Rosendahl [Mon, 26 Mar 2012 11:05:27 +0000 (14:05 +0300)]
Deliver GStreamer signals through Qt event loop

Emitting a Qt signal directly from GLib callback causes issues to clients.
Queue the GStreamer signal and forward it to as a Qt signal from a handler
that is invoked via the Qt event loop.

Task-number: QTBUG-24927
Change-Id: I3c91efcce1261caf7b643fbff10663e1b093f2a8
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMake this unit test a bit more robust for qreal changes.
Michael Goddard [Mon, 26 Mar 2012 03:35:44 +0000 (13:35 +1000)]
Make this unit test a bit more robust for qreal changes.

It's not just ARM that has qreal == float (and sometimes not even then)

Change-Id: Ic2fa890afd9f926c455442d04dc84e57dffe7787
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoBuild fix on Windows
Yuchen Deng [Sat, 24 Mar 2012 01:50:09 +0000 (09:50 +0800)]
Build fix on Windows

Change-Id: I2666a81837dc78342b03a7cb5a33b406fd917661
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMinor improvements on resource-policy interfaces
Ling Hu [Mon, 26 Mar 2012 00:51:14 +0000 (10:51 +1000)]
Minor improvements on resource-policy interfaces

Change-Id: I3e9c7c4d1fca90e0fb97b0058e9b5a5e34940025
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRename the daemon global static to pulseDaemon
Thiago Macieira [Tue, 1 Nov 2011 10:45:51 +0000 (11:45 +0100)]
Rename the daemon global static to pulseDaemon

There's a daemon() function declared in unistd.h.

Change-Id: I1063e71248a5236a5bb6b8f10804c469c8d1f788
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
12 years agoMake gstreamer player backend reserve/release video resource.
Ling Hu [Thu, 22 Mar 2012 00:41:50 +0000 (10:41 +1000)]
Make gstreamer player backend reserve/release video resource.

Use request/release of various video related controls as an indication for the decision.

Change-Id: I3a2a288c7c46ca62459896745bbdda26961bb181
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoImplemented availability control for gstreamer player backend
Ling Hu [Wed, 21 Mar 2012 05:22:58 +0000 (15:22 +1000)]
Implemented availability control for gstreamer player backend

Change-Id: I6d736b90ad59e258eb6f20befea8cfe1afce423a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded resource policy support though internal plugin system
Ling Hu [Wed, 21 Mar 2012 04:25:23 +0000 (14:25 +1000)]
Added resource policy support though internal plugin system

Change-Id: I374be17d49b6a5eed0b1ed94d0b9ca5f9a2caa9b
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoDon't delete video node factories owned by the plugin loader.
Andrew den Exter [Fri, 23 Mar 2012 06:00:08 +0000 (16:00 +1000)]
Don't delete video node factories owned by the plugin loader.

Make the fallback factories members instead of creating on the
heap so there's no need to delete members of the m_videoNodeFactories
some of which may be shared with other current and future video
outputs.

Change-Id: I3d2e32e52479b12ff64e31a2ed527336d94a191b
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixes to qmediaplayerbackend integration test: use ogg video on Linux.
Lev Zelenskiy [Thu, 22 Mar 2012 07:10:19 +0000 (17:10 +1000)]
Fixes to qmediaplayerbackend integration test: use ogg video on Linux.

Attempt to find supported video format before running tests.
Tests are skipped if no video format is supported by the system.

Change-Id: Iad5b26438b6407f0808e288c5e6184f220f30e36
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoresolving some warnings in qtmultimedia docs
Angus Cummings [Mon, 19 Mar 2012 07:32:31 +0000 (17:32 +1000)]
resolving some warnings in qtmultimedia docs

Change-Id: I9df926f64548a5d53382448ca4eef8d428339aa3
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded VideoLight camera flash mode.
Dmytro Poplavskiy [Wed, 21 Mar 2012 06:30:35 +0000 (16:30 +1000)]
Added VideoLight camera flash mode.

Unlike the torch mode, it's enabled only while camera is active.

Change-Id: Ib92349ac190586c5aa8e49a8fddbdf937e757fd0
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed media service provider auto test on Mac OS X
Jonas Rabbe [Wed, 21 Mar 2012 01:48:27 +0000 (11:48 +1000)]
Fixed media service provider auto test on Mac OS X

Change-Id: I424ef50188244b5f4232534f9088bdc0071ea63e
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agochanging include from qdeclarativeinfo to qmlinfo in qdeclarativeaudio.cpp
Thomas Senyk [Wed, 21 Mar 2012 14:21:32 +0000 (15:21 +0100)]
changing include from qdeclarativeinfo to qmlinfo in qdeclarativeaudio.cpp

Change-Id: I7244f6c7b3743dfe5532f1d13c2afef256a2cdbc
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoQMediaPlaylist: Added ability to load from provided QNetworkRequest.
Lev Zelenskiy [Wed, 14 Mar 2012 23:41:18 +0000 (09:41 +1000)]
QMediaPlaylist: Added ability to load from provided QNetworkRequest.

Change-Id: I7d8fc8a432810ff87650808b9ca6af53f7356d4e
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdded integration test for new playlist functionality.
Lev Zelenskiy [Fri, 9 Mar 2012 01:54:42 +0000 (11:54 +1000)]
Added integration test for new playlist functionality.

Change-Id: I9cc4a3d140003de737b81b4dcfa1e4a94d4a2ba4
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoQMediaPlayer: GStreamer backend changes for playlist support.
Lev Zelenskiy [Mon, 5 Mar 2012 04:16:06 +0000 (14:16 +1000)]
QMediaPlayer: GStreamer backend changes for playlist support.

Register type find function to check if unrecognized media is a playlist.
Emit MediaIsPlaylist error and let frontend handle playlists.

Change-Id: Ib17da1c46014ac3c0f2f48b75ea9de2f0428b573
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoQMediaPlayer frontend: changes to playlist support.
Lev Zelenskiy [Thu, 8 Mar 2012 23:53:21 +0000 (09:53 +1000)]
QMediaPlayer frontend: changes to playlist support.

Allow to load playlists using setMedia().
Use QNetworkMediaPlaylistProvider for playlist parsing.
Updated unit tests.

Change-Id: If4dba07be8b2e8a9e9549d5bed58e552dfb958b7
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoNew playlist parsers to support network playlists.
Lev Zelenskiy [Thu, 8 Mar 2012 23:49:30 +0000 (09:49 +1000)]
New playlist parsers to support network playlists.

Added new playlist parsers for M3U and PLS.
Added QNetworkMediaPlaylistProvider.

Change-Id: I4c64018e44b8ae2401d6846a0c3c326d8c2ca5cc
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMarked media service provide test as insignificant on mac
Jonas Rabbe [Tue, 20 Mar 2012 22:38:05 +0000 (08:38 +1000)]
Marked media service provide test as insignificant on mac

Temporary measure to ensure that IID and plugin changes make it through
CI, will be investigated once those changes have been integrated.

Change-Id: Ie9313a0fa6081ebeff62a83f183ab2534c0469ee
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoUpdated IID, services, and controls to use qt-project URL
Jonas Rabbe [Mon, 19 Mar 2012 03:35:30 +0000 (13:35 +1000)]
Updated IID, services, and controls to use qt-project URL

Instead of com.nokia.qt we should use org.qt-project.qt.
All the identifiers have also been updated to use pure lowercase, and
where used the version numbers have been updated to 5.0.

Change-Id: Ib209327f5205f5a086a5932394504a8a52e1f712
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoUpdated plugins to use new plugin architecture
Jonas Rabbe [Wed, 14 Mar 2012 03:02:32 +0000 (13:02 +1000)]
Updated plugins to use new plugin architecture

Changed QMediaPluginLoader to use QFactoryLoader instead of QPluginLoader
and used metadata to get keys.
Removed QAudioPluginLoader and changed audio classes to use instead use
QMediaPluginLoader.
The plugins must include the Q_PLUGIN_METADATA macro, and no longer use
the Q_PLUGIN_EXPORT/Q_PLUGIN_EXPORT2 macros.
A json file has been added for each plugin which can contain metadata
which is available to the plugin loader before the plugin is actually
loaded, and is used to read the keys for the plugin, e.g. supported
services.
QFactoryInterface will be deprecated and has been removed from all
plugins.

Change-Id: I035b82f9c9c65717bebf704d560ea8f891df21da
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoCompile on Windows
Marius Storm-Olsen [Fri, 16 Mar 2012 16:41:42 +0000 (11:41 -0500)]
Compile on Windows

Conversion of WId to HWND requires reinterpret_cast.

Comment out RatingOrganisation for directshow as it is commented out in
the gstreamer plugins too.
(Note that both directshow and gstreamer plugins spell it incorrectly.
It's spelled "RatingOrganization" in qtmedianamespace.h)

Change-Id: I4cbcecfeb62ad795facf498d1c3d84a776d2ca35
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed the qml Camera.imageCapture.imageExposed signal connection
Dmytro Poplavskiy [Mon, 19 Mar 2012 03:58:55 +0000 (13:58 +1000)]
Fixed the qml Camera.imageCapture.imageExposed signal connection

Trivial fix.

Change-Id: I522e3186ce9284e3aa0fb84296bc3c1e663e8577
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMake QDeclarativeAudio use QMediaPlayer instead of the controls.
Michael Goddard [Tue, 13 Mar 2012 03:29:26 +0000 (13:29 +1000)]
Make QDeclarativeAudio use QMediaPlayer instead of the controls.

Very minor changes in semantics due to previous differences:
* negative positions are not supported any more (clamped to >= 0)
* setting muted to the same value previously set to the control itself
  won't signal any more.

Change-Id: Iacf4310508d853ae82b63dee28095fce12b6ff28
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMerge the QDeclarativeMediaBase and QDeclarativeAudio classes.
Michael Goddard [Mon, 12 Mar 2012 07:25:54 +0000 (17:25 +1000)]
Merge the QDeclarativeMediaBase and QDeclarativeAudio classes.

Since there is only one subclass of base.

Next step is to clean up QDeclarativeAudio

Change-Id: Ibda8c3006efa165b58372a011121f04a39458562
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoHandle more errors from GStreamer.
Michael Goddard [Thu, 15 Mar 2012 05:41:19 +0000 (15:41 +1000)]
Handle more errors from GStreamer.

Corrupted etc files can throw GST_STREAM_ERROR_DECODE and those should
generally stop playback.  So now any error is fatal, not just the
recognised ones.

Change-Id: I7b6dd2a460d94f70c459a313a9d4dc84028f8002
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdd use of TESTDATA feature to integration tests
Kalle Juhani Lehtonen [Tue, 13 Mar 2012 01:46:44 +0000 (11:46 +1000)]
Add use of TESTDATA feature to integration tests

Use TESTDATA and QFINDTESTDATA in integration tests. Also remove
unused path defines from unit test .pro files.

Change-Id: I46dc6a96b918e989acf79eb3bd23c53125c7c3d6
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdated declarative components to use the QML module
Jonas Rabbe [Tue, 13 Mar 2012 22:39:43 +0000 (08:39 +1000)]
Updated declarative components to use the QML module

Change-Id: I4b49466ba5248683c2285f98ce17bc2c24bba515
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agogst video surface sink: start surface with correct handle type
Dmytro Poplavskiy [Wed, 14 Mar 2012 01:52:43 +0000 (11:52 +1000)]
gst video surface sink: start surface with correct handle type

The handle type should match one from the currently used buffer pool.

Change-Id: I33f7856a742299ce0640f331898c3cbe5cfbdf97
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoMade QRadioData bind to QRadioTuner to avoid using multiple services
Jonas Rabbe [Thu, 8 Mar 2012 01:05:30 +0000 (11:05 +1000)]
Made QRadioData bind to QRadioTuner to avoid using multiple services

QRadioData has been updated to be a QMediaBindableInterface, and it
will bind to a QRadioTuner instance, i.e. a QMediaObject that provides
a service which implements the QRadioDataControl.
This change is reflected in the declarative implementations of radio
tuner and data. There is a new `radioData` property in the Radio element
which will give access to the declarative RadioData element for the
tuner.
If a RadioData element is created in QML, it will have an anonymous
tuner which communicates with the underlying media service (which is
pretty much the same how the QRadioTuner and QRadioData classes work
previously).
Updated radio tuner and data test cases to use availability control
and extended the mock media service to allow providing a number of
controls rather than just one (needed for testing availability of
all classes extending from or using QMediaObject).

Change-Id: Id41dde66eee529decd828fd2dcdfe4a54c0e81f4
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoQCamera capture documentation fixes
Dmytro Poplavskiy [Mon, 12 Mar 2012 03:27:42 +0000 (13:27 +1000)]
QCamera capture documentation fixes

Added documentation for camera capture queue behavior.

Change-Id: I4989f94c5de0edb3ac99135dcb3e11d76195a880
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUse small-screen layout in qmlvideo, qmlvideofx examples on Harmattan
Gareth Stockwell [Fri, 9 Mar 2012 15:39:33 +0000 (15:39 +0000)]
Use small-screen layout in qmlvideo, qmlvideofx examples on Harmattan

Change-Id: Ieaaca763630acfb81a1b5b5cfef2d08367a9e265
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdated qmlvideofx to use MediaPlayer.autoPlay instead of playing
Gareth Stockwell [Fri, 9 Mar 2012 14:52:49 +0000 (14:52 +0000)]
Updated qmlvideofx to use MediaPlayer.autoPlay instead of playing

Change-Id: Iee9066a6c7fcddbe6054e9c505b24e478f63cb4d
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdate Qt Multimedia tests to use TESTDATA
Kalle Juhani Lehtonen [Fri, 9 Mar 2012 03:18:34 +0000 (13:18 +1000)]
Update Qt Multimedia tests to use TESTDATA

Qt5 brought support for general for test data install and find. This
change replaces old Qt4 time deployment supported in WinCE and Symbian
with the new general solution using TESTDATA in .pro files and
QFINDTESTDATA in source code.

Change-Id: I5dbe3ca22e2259f249ebb4df570ea91f17d23526
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded playlist property to QMediaContent
Lev Zelenskiy [Mon, 5 Mar 2012 02:25:50 +0000 (12:25 +1000)]
Added playlist property to QMediaContent

This is a part of changes to QMediaPlayer related to playlist handling.
Updated unit test.

Change-Id: Ic2460dc4d3121788cd5eb08df71e6d45aac032bc
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoDon't request renderer control if null surface is set as video output.
Dmytro Poplavskiy [Fri, 9 Mar 2012 04:51:07 +0000 (14:51 +1000)]
Don't request renderer control if null surface is set as video output.

QCamera and QMediaPlayer are likely to wait for valid
surface to be passed to the renderer control before startup, so after
player->setVideoOutput(nullSurface)
player will not start playback.

If the renderer control was already requested before for valid
surface it should be released when the null surface is assigned.

Change-Id: I3f78f2d82e61fae5f305874874c0ffbc4cb7dc1d
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoMove most of playlist API to private.
Lev Zelenskiy [Tue, 6 Mar 2012 02:23:09 +0000 (12:23 +1000)]
Move most of playlist API to private.

Moved objects either not needed to be public or require API review/redesign.

Change-Id: Ibeb8b8c9c9a74bea32191c119fa4daaffde57c17
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoRemove unimplemented BG playback feature.
Michael Goddard [Fri, 2 Mar 2012 01:41:18 +0000 (11:41 +1000)]
Remove unimplemented BG playback feature.

Prototype that wasn't implemented should be removed for 5.0.

Change-Id: I3b90658ad8dc0b64003a5bb741fc3c93c7d87dff
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFix a few memory leaks.
Michael Goddard [Mon, 5 Mar 2012 09:01:02 +0000 (19:01 +1000)]
Fix a few memory leaks.

XV Buffer pool was leaking, the sink delegate was leaking, and the
sink wasn't chaining to parent class so GstObject stuff was leaking.

Change-Id: I5d6b6fe59dfb2b3c5367dfde8331e5943167b55d
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoRemove pin of qtbase for qtmultimedia.
Sergio Ahumada [Sat, 3 Mar 2012 12:18:21 +0000 (13:18 +0100)]
Remove pin of qtbase for qtmultimedia.

Change-Id: I2e57bab345b90943613466b4bc655af1d5a5b831
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix some memory leaks.
Michael Goddard [Mon, 5 Mar 2012 01:00:10 +0000 (11:00 +1000)]
Fix some memory leaks.

Adjusted a unit test or two to make leaks easier to find, and then fixed
a few leaks.

Change-Id: I47a20df8de7cac113d34a2015f76a65ab957dedd
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoChange bugreports.qt.nokia.com -> bugreports.qt-project.org
Sergio Ahumada [Fri, 2 Mar 2012 12:27:12 +0000 (13:27 +0100)]
Change bugreports.qt.nokia.com -> bugreports.qt-project.org

Change-Id: I76a8727e12e3d19a2e2f5808080ee25b9af905c1
Reviewed-by: Jyri Tahtela <jyri.tahtela@nokia.com>
12 years agoExpose availability from the backend to C++ and QML.
Michael Goddard [Thu, 1 Mar 2012 14:21:04 +0000 (00:21 +1000)]
Expose availability from the backend to C++ and QML.

The availabilityError property was static based on the service, but it
can change at run time, so add the plumbing to allow the backend to
report it itself.

Also make sure that both QML and C++ expose the availability.

The radio tuner and data controls previously had properties (but no
signals) for availability - these have been removed.

Change-Id: I9240cf93e2a51b14cd38642f9312ae3c75f05361
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoRemove the usage of deprecated qdoc macros.
Casper van Donderen [Thu, 1 Mar 2012 17:50:38 +0000 (18:50 +0100)]
Remove the usage of deprecated qdoc macros.

QDoc now has support for Doxygen style commands for italics, bold
and list items. This change applies that change in QDoc to the
actual documentation.

Task-number: QTBUG-24578
Change-Id: Iec1c616e0d9a915a31a661916805916e19495dc9
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoPin QtBase SHA1 until it's fixed.
Michael Goddard [Fri, 2 Mar 2012 02:52:42 +0000 (12:52 +1000)]
Pin QtBase SHA1 until it's fixed.

Also remove QtSvg dependency that came from QtDeclarative a long time
ago.

Change-Id: Iac851e027a6a6f61896fecd36b43a4036dd1b717
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoExpose the audio and video encoding modes through QML as well.
Michael Goddard [Sun, 26 Feb 2012 04:47:05 +0000 (14:47 +1000)]
Expose the audio and video encoding modes through QML as well.

They were missing.

Change-Id: I0bb08c5e4721c27d2dcec818c0ee33f42c8df959
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAudio decoder example.
Lev Zelenskiy [Fri, 24 Feb 2012 03:00:35 +0000 (13:00 +1000)]
Audio decoder example.

Change-Id: I0f9fb755ef8bc6f66696a06996ac7a9f13de69cc
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDon't reset saved playback position if playback resource is denied.
Michael Goddard [Sun, 26 Feb 2012 04:47:05 +0000 (14:47 +1000)]
Don't reset saved playback position if playback resource is denied.

Resource denied and resource lost should be handled differently,
on resource lost the current playback position should be preserved,
while on resource denied player state should be changed to paused
with pending position unchanged.

(from qtmobility, SHA1 4e457432ef0f50cb91a1043f0390427cafcaef0d)

Change-Id: I5ce755409c430598d68ee6a6a90f9d0858ea9da9
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAudio recorder example updated to display level using QAudioProbe.
Lev Zelenskiy [Tue, 21 Feb 2012 07:35:51 +0000 (17:35 +1000)]
Audio recorder example updated to display level using QAudioProbe.

Change-Id: I7d5aea306aeb3cd9109615f9ed4905c53125233a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoVideo player example updated to display histogram using QVideoProbe.
Lev Zelenskiy [Tue, 21 Feb 2012 07:23:47 +0000 (17:23 +1000)]
Video player example updated to display histogram using QVideoProbe.

Change-Id: Iaeba751280133bd405fe90a0d5d07be446c95738
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoChanges to GStreamer backend for audio decoder.
Lev Zelenskiy [Fri, 24 Feb 2012 02:50:32 +0000 (12:50 +1000)]
Changes to GStreamer backend for audio decoder.

Removed WaitingState.
New signals: finished(), positionChanged(), durationChanged().
New methods: position(), duration().
A parameter removed from read() method.
Unit tests updated.

Change-Id: Ie9d8a2804285c5542e592cce69963adbdf6ebfb8
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoChanges to QAudioBuffer and QAudioDecoder (position and duration).
Lev Zelenskiy [Fri, 24 Feb 2012 00:55:17 +0000 (10:55 +1000)]
Changes to QAudioBuffer and QAudioDecoder (position and duration).

QAudioBuffer:
- Allow to specify startTime in the constructor.
QAudioDecoder:
- Removed WaitingState.
- New signals: finished(), positionChanged(), durationChanged().
- New methods: position(), duration().
- A parameter removed from read() method.

Change-Id: Ifb71502d0756aa306abd0a6bf7873934029952c4
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDon't use QT_ARCH to detect ARM or OpenGL ES 2 on ARM
Bradley T. Hughes [Tue, 14 Feb 2012 13:14:42 +0000 (14:14 +0100)]
Don't use QT_ARCH to detect ARM or OpenGL ES 2 on ARM

Use Q_PROCESSOR_ARM instead of QT_ARCH_ARM.

On maemo6, don't use QT_ARCH==armv6 to conditionally include egl
code. Instead check for opengles2 in QT_CONFIG, which is detected
by the configure script.

Change-Id: Ib3062fbd81c3a3acd318df32c49ad133a5b0d07c
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDocs: fix qml links and standalone build for Multimedia
Peter Yard [Tue, 21 Feb 2012 05:58:01 +0000 (15:58 +1000)]
Docs: fix qml links and standalone build for Multimedia

Change-Id: Ia3f1e49aef203911bb5cf1ee062c9100be213b38
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoclean up qmake-generated projects
Oswald Buddenhagen [Tue, 21 Feb 2012 16:34:53 +0000 (17:34 +0100)]
clean up qmake-generated projects

remove assignmets which are defaults or bogus

Change-Id: I7130f22a66b294f92b0ed03749895136d0890a64
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUpdate audioengine overview doc & reference doc
Ling Hu [Tue, 14 Feb 2012 01:59:13 +0000 (11:59 +1000)]
Update audioengine overview doc & reference doc

Change-Id: If1061b3dc113f4354d741c536d63cbe36e7a65eb
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix a few audiodecoder things.
Michael Goddard [Fri, 17 Feb 2012 09:10:35 +0000 (19:10 +1000)]
Fix a few audiodecoder things.

Beef up the autotest a little, and check the conversion.

Change-Id: Ifffca118e092eb6c388db50a6eb12810a87aa32a
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix QAudioBuffer sampleCount vs. channelCount.
Michael Goddard [Tue, 21 Feb 2012 05:19:38 +0000 (15:19 +1000)]
Fix QAudioBuffer sampleCount vs. channelCount.

There were some inconsistencies in when the sample count was per channel
or in total.  The docs mention that it is in total, so fix a few cases
where it went wrong and test it.

Change-Id: I55c855911fcde66a218d6cdd327e09ad5406d5a4
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Lev Zelenskiy <lev.zelenskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd the hasAudio/hasVideo properties from MediaPlayer to Video.
Michael Goddard [Fri, 17 Feb 2012 07:43:04 +0000 (17:43 +1000)]
Add the hasAudio/hasVideo properties from MediaPlayer to Video.

Change-Id: I167184c3622c4fcb0843b17f2ab803b0bbf104fa
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGStreamer backend for audio decoder service.
Lev Zelenskiy [Thu, 16 Feb 2012 06:54:46 +0000 (16:54 +1000)]
GStreamer backend for audio decoder service.

Includes basic integration test.

Change-Id: I4c6d1dbefa1f27e107b3556a3d4da58811eeb122
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded QAudioDecoderControl::sourceChanged signal.
Lev Zelenskiy [Thu, 16 Feb 2012 06:46:21 +0000 (16:46 +1000)]
Added QAudioDecoderControl::sourceChanged signal.

The signal is mentioned in QAudioDecoder but is missing from
QAudioDecoderControl.

Change-Id: I0cd13c53541585098edd02093858501ffb5af1fb
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdd a partial gstreamer based audio decoder service.
Michael Goddard [Tue, 14 Feb 2012 06:14:08 +0000 (16:14 +1000)]
Add a partial gstreamer based audio decoder service.

Doesn't work yet.

Change-Id: Iebd085d68346cb73af8df59c84e8e52a17de2a52
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUse QTESTFINDDATA to FIND TEST DATA.
Michael Goddard [Fri, 17 Feb 2012 04:40:58 +0000 (14:40 +1000)]
Use QTESTFINDDATA to FIND TEST DATA.

Change-Id: I5fd222e562045085b3d08e19c6544f674e9429d4
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoUse a PA function to compare specs instead of memcmp.
Michael Goddard [Fri, 17 Feb 2012 04:41:39 +0000 (14:41 +1000)]
Use a PA function to compare specs instead of memcmp.

Otherwise valgrind complains a lot.  Probably holes in the spec
structure.

Change-Id: I9580a73255820f49c0ac947eed1595a758f19ccd
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAdd Video_4.qml to the packaging.
Michael Goddard [Fri, 17 Feb 2012 05:20:50 +0000 (15:20 +1000)]
Add Video_4.qml to the packaging.

Change-Id: I0a6036a979ab00a2885c56450d1db9497b1cff0c
Reviewed-by: Angus Cummings <angus.cummings@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoQMediaRecorder: GStreamer backend changes for media probing API.
Lev Zelenskiy [Wed, 15 Feb 2012 04:45:18 +0000 (14:45 +1000)]
QMediaRecorder: GStreamer backend changes for media probing API.

QGstreamerCaptureSession: Using GStreamer buffer probe
to access media data.

Change-Id: I2ee38e864fbd69fcba9efe90d4dcf138528e00c0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGStreamer backend changes for media probing API.
Lev Zelenskiy [Thu, 9 Feb 2012 06:50:30 +0000 (16:50 +1000)]
GStreamer backend changes for media probing API.

QGstreamerPlayerSession: Using GStreamer buffer probes
to access media data.

Change-Id: Ibc056283fdedaebba90456cc4e86ab63eae5f5f7
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix some compiler warnings.
Michael Goddard [Tue, 14 Feb 2012 00:56:04 +0000 (10:56 +1000)]
Fix some compiler warnings.

As it turns out, we had an overloaded virtual from an earlier era,
with the extra parameter never used.  So cleaning that up was a
bonus to remove the compiler warning.

Change-Id: I780287f8a5d2b0a1ec84ec62c88ba50e051f372b
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoTweak some more documentation.
Michael Goddard [Mon, 13 Feb 2012 11:05:35 +0000 (21:05 +1000)]
Tweak some more documentation.

A lot of the previous Qt Mobility API methods were still present,
so they are gone now.  Also removed some of the C++ documentation
since it's not public API anyway.
Made a group for camera QML APIs and used that for the list in the
camera overview documentation.

Change-Id: I0864bd2230a42596e951b68d0df1211766c90dfc
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoUpdated audio recorder example with screenshot and correct information.
Jonas Rabbe [Mon, 13 Feb 2012 22:41:51 +0000 (08:41 +1000)]
Updated audio recorder example with screenshot and correct information.

Change-Id: Ibf0dc8df55f20988a949e49b1b434710373f0095
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Mithra Pattison <mithra.pattison@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDocumentation updates for declarative camera elements.
Michael Goddard [Fri, 10 Feb 2012 13:35:33 +0000 (23:35 +1000)]
Documentation updates for declarative camera elements.

A number of things were missing.

Change-Id: Ic4eb2e88804b519478eeae733cc5f473b717270d
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRemove duplicates definitions of QTRY_VERIFY and QTRY_COMPARE.
Jason McDonald [Mon, 13 Feb 2012 04:35:46 +0000 (14:35 +1000)]
Remove duplicates definitions of QTRY_VERIFY and QTRY_COMPARE.

These definitions were already ignored due to #ifndef directives
surrounding them, so presumably the differences in timeout values
between these definitions and those in testlib are acceptable.

Change-Id: Ib860fc1ed27ef0690e619ffeed516f7417ae4cd0
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoFix shader file loading in qmlvideofx example
Gareth Stockwell [Fri, 10 Feb 2012 14:09:59 +0000 (14:09 +0000)]
Fix shader file loading in qmlvideofx example

Each effect is implemented as a QML element, whose
fragment/vertexShaderFilename properties specify paths from which
shader programs are loaded.  These paths are relative to the application
installation directory, e.g. "shaders/billboard.fsh".  If the current
directory from which the application is launched does not match the
installation directory, shader program loading fails.  This patch
converts the relative filename provided by the QML element into an
absolute path before attempting to open the file.

Change-Id: I8ed39d271c4f1f59180588843e500ed73a93a543
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>