platform/upstream/qtmultimedia.git
12 years agoIf the sample hasn't been loaded, don't try and delete things.
Michael Goddard [Fri, 18 Nov 2011 02:30:42 +0000 (12:30 +1000)]
If the sample hasn't been loaded, don't try and delete things.

Causes entirely reasonable warnings from QCoreApplication::postEvents,
when calling deleteLater on a null pointer.

Change-Id: I5f1fa526b2d57844b9c0d2e634d434e2f7867bdf
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoIf the sample hasn't been loaded, don't try and delete things.
Michael Goddard [Fri, 18 Nov 2011 02:30:42 +0000 (12:30 +1000)]
If the sample hasn't been loaded, don't try and delete things.

Causes entirely reasonable warnings from QCoreApplication::postEvents,
when calling deleteLater on a null pointer.

Change-Id: I5f1fa526b2d57844b9c0d2e634d434e2f7867bdf
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoExport QMediaPluginLoader so it can be used by libqgsttools_p.
Jonas Rabbe [Fri, 18 Nov 2011 00:53:29 +0000 (10:53 +1000)]
Export QMediaPluginLoader so it can be used by libqgsttools_p.

Change-Id: I2af6a68646cccaa92ae8b85b67e2095dcfee485e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoExport QMediaPluginLoader so it can be used by libqgsttools_p.
Jonas Rabbe [Fri, 18 Nov 2011 00:53:29 +0000 (10:53 +1000)]
Export QMediaPluginLoader so it can be used by libqgsttools_p.

Change-Id: I2af6a68646cccaa92ae8b85b67e2095dcfee485e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoIf Pulse isn't ready, don't crash when trying to play.
Michael Goddard [Thu, 17 Nov 2011 07:22:36 +0000 (17:22 +1000)]
If Pulse isn't ready, don't crash when trying to play.

Change-Id: I996581e4492004f716d44a39fb5f74c26c9f9ac2
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoFix volume change error on mono stream for soundeffect(pulseaudio)
Ling Hu [Wed, 28 Sep 2011 02:15:51 +0000 (12:15 +1000)]
Fix volume change error on mono stream for soundeffect(pulseaudio)

(Cherry-picked from 663df44fc8563c548c26a7ae21927b09664c28f2)

Change-Id: I005071bc1a8b2eae4d0660042fc8986d61804c47
Reviewed-by: Michael Goddard
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd cap on internal read/write buffer for QAudioOuput(PA)
Ling Hu [Tue, 15 Nov 2011 05:40:04 +0000 (15:40 +1000)]
Add cap on internal read/write buffer for QAudioOuput(PA)

cap set to no more than 5x period size

Change-Id: If3ae244993a8929832f6724c386dac6f12ef0f03
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded support for non QMediaObject based VideoOutput sources.
Dmytro Poplavskiy [Mon, 14 Nov 2011 23:56:32 +0000 (09:56 +1000)]
Added support for non QMediaObject based VideoOutput sources.

VideoOutput element checks first for mediaObject property of
source object and if it's not available it checks
for videoSurface property.

It allows to implement video frames generator and connect it
to optimized VideoOutput QML element.

Change-Id: I8ee618cf61b9d9100f25e742c631ea8724c188dc
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd additional protection on the write size in QAudioOuput(pulseaudio)
Ling Hu [Mon, 14 Nov 2011 04:37:40 +0000 (14:37 +1000)]
Add additional protection on the write size in QAudioOuput(pulseaudio)

Check and cap the write size in pull mode to handle the case
where user returned an invalid write size through QIODevice

Change-Id: Ie0610a63f1d5400fba87f32a99bdc38479e0e7e8
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoChanged QVideoSurfaceGstSink to take pools from plugins
Jonas Rabbe [Tue, 8 Nov 2011 02:38:02 +0000 (12:38 +1000)]
Changed QVideoSurfaceGstSink to take pools from plugins

Change-Id: Iec743efc52513e2000276b9a18d1d9639c270699
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoRemove SkipMode parameter from QSKIP.
Jason McDonald [Wed, 9 Nov 2011 04:14:08 +0000 (14:14 +1000)]
Remove SkipMode parameter from QSKIP.

The SkipMode parameter has been removed from the API in qtbase, so it
must be in all calls to QSKIP.

Task-number: QTBUG-21851, QTBUG-21652
Change-Id: Ib6225572a46eac7881222fdce192750b8b13ee3b
Reviewed-by: Steve Schilz <sschilz@pasco.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
12 years agoRadio systemtests
dakovaci [Mon, 31 Oct 2011 05:52:26 +0000 (15:52 +1000)]
Radio systemtests

Added some radio functionality to match the qlm radio example

Change-Id: Ie0358c3443121b638db406e095467b18b4d6b57c
Reviewed-by: Daron Andrew Edie
(cherry picked from commit 1e542df82fbcc4e3a8f75537af204f83827a4587)
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd qRegisterMetaTypes for the public Q_DECLARE_METATYPEs.
Michael Goddard [Tue, 8 Nov 2011 07:41:00 +0000 (17:41 +1000)]
Add qRegisterMetaTypes for the public Q_DECLARE_METATYPEs.

Also turned qtmedianamespace.qdoc into a cpp file so I
could stick the qRegisterMetaTypes into it.

Change-Id: Idd6d3e2f348f1ed45b0a35ce180d023a170e8625
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix pullmode data lost problem in QAudioOutput(pulseaudio)
Ling Hu [Mon, 7 Nov 2011 01:49:09 +0000 (11:49 +1000)]
Fix pullmode data lost problem in QAudioOutput(pulseaudio)

At each userFeed, m_bytesAvailable is not updated properly in pullmode,
so the pull data size become irrelevent to the size we can actually write.
This problem is fixed by checking the actual writable size each time
before pulling the data and limit the size of the pulled and written data.

Change-Id: I6f53e6348693ddf4e3c79e90d3c3d0c1ffc713aa
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoChange the order textures are bound.
Michael Goddard [Tue, 8 Nov 2011 06:56:12 +0000 (16:56 +1000)]
Change the order textures are bound.

Leave texture unit 0 active at the end, since the active texture unit
is not restored by SG itself.

Change-Id: I4970a955fea5c9342cc93c1d1b07ffbfb71e5f04
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoAdded qRegisterMetatype for QVideoSurfaceFormat.
Jonas Rabbe [Tue, 8 Nov 2011 03:32:14 +0000 (13:32 +1000)]
Added qRegisterMetatype for QVideoSurfaceFormat.

Change-Id: I7dbae1dde2f24db89479dcb23ef6fc5e29377f25
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoUse QAtomicInt::load() and ::store()
Bradley T. Hughes [Tue, 1 Nov 2011 12:37:41 +0000 (13:37 +0100)]
Use QAtomicInt::load() and ::store()

The operator=(int) and implicit int cast operators are deprecated
and will be removed.

Change-Id: I5091d705fba45195239c901f210355e09e123faa
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
12 years agoRearrange the automatic tests.
Michael Goddard [Fri, 4 Nov 2011 03:38:44 +0000 (13:38 +1000)]
Rearrange the automatic tests.

Split them into unit and integration tests.  Integration tests really
need to be run on the real platform (not in a VM etc) since they are
somewhat unstable or nonfunctional otherwise.

A few tests were previously broken by QUrl changes and they were repaired.
Removed one test since it was not providing a lot of value.

There are still a number of tests that rely on Q_AUTOTEST_EXPORT symbols.

Change-Id: Ic402abf0af946baa5945075d975b3f584f9ef280
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
12 years agoDeclare more metatypes and debug operators.
Michael Goddard [Tue, 1 Nov 2011 02:46:48 +0000 (12:46 +1000)]
Declare more metatypes and debug operators.

Nearly all of the multimedia metatypes used in the auto tests are
now declared properly, and a large number of the types have debug
operators as well.

Removed the superfluous decls as well.

Change-Id: I42cfe37562db0c71d9811b4577fc326a3326ccc9
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd a private class, since we now can.
Michael Goddard [Tue, 1 Nov 2011 01:19:22 +0000 (11:19 +1000)]
Add a private class, since we now can.

This was a XXX Qt5 thing for binary compatibility. We could also
now use QObjectPrivate if we wanted to.

Change-Id: I7d95e3adf7b0725e91e1e229646a453863e989ed
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoQtMultimedia: Remove qpa-sections from .profiles.
Friedemann Kleint [Fri, 28 Oct 2011 07:09:59 +0000 (09:09 +0200)]
QtMultimedia: Remove qpa-sections from .profiles.

Prepare for removal of the -qpa configure option.

Change-Id: Ibf4be58231d29cd972eb765f32b410e1eb9d7fed
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix logic in QAudioDeviceInfoInternal::updateLists()
Kent Hansen [Wed, 5 Oct 2011 12:20:22 +0000 (14:20 +0200)]
Fix logic in QAudioDeviceInfoInternal::updateLists()

Task-number: QTBUG-20482

Change-Id: I0dd59a0388965726eb8cfd36a8549250916d999a
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove the last bits of QtMultimediaKit (*).
Michael Goddard [Thu, 27 Oct 2011 00:45:13 +0000 (10:45 +1000)]
Remove the last bits of QtMultimediaKit (*).

Except a comment about it in the module overview.

Change-Id: I22d9111d7917d1a3259ee1e525fd52501733454e
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoUse deleteLater when called on a decoder error.
Michael Goddard [Wed, 26 Oct 2011 05:33:16 +0000 (15:33 +1000)]
Use deleteLater when called on a decoder error.

Since we cleanup the decoder itself, it can crash when the stack
unwinds back into the decoder code.  Similarly on a network error.

Change-Id: Ice36a3008359565f186406945973747b3134d296
Reviewed-by: Ling Hu <ling.hu@nokia.com>
(cherry picked from commit fb10bcf6cea520e1c43a77b6b88cf01ae9dc74ad)

12 years agoMerge remote branch 'qtmultimedia.git/master'
Michael Goddard [Wed, 26 Oct 2011 00:33:50 +0000 (10:33 +1000)]
Merge remote branch 'qtmultimedia.git/master'

This replaces the qtmultimedia.git contents with qtmultimediakit.git's
contents (as a merge with -s ours, when run against qtmmk).

Change-Id: I940f84fb09285eb7e37d0aaac07ccc4f3165b04f

12 years agoFix config.test
Michael Goddard [Tue, 25 Oct 2011 05:03:11 +0000 (15:03 +1000)]
Fix config.test

Using "this" in non member function, oops.

Change-Id: I7cda3eea755099af2ff2df7b777e3e228e53e325
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDon't ignore debug plugins on Mac when release plugins aren't available
Rohan McGovern [Tue, 25 Oct 2011 01:05:20 +0000 (11:05 +1000)]
Don't ignore debug plugins on Mac when release plugins aren't available

Previously, we unconditionally ignored any plugins whose names ended
with _debug.dylib.  This makes the mediaservice plugins unusable on Mac
if Qt is configured to build plugins as debug-only (which is
incidentally the default).

Change-Id: I5a8981b2251e803fa233b74c968f6eaa452d367c
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoWe already have a mock backend.
Michael Goddard [Tue, 25 Oct 2011 03:51:32 +0000 (13:51 +1000)]
We already have a mock backend.

Change-Id: Ic4f9277c4c4bff225ac6cd70d28b495a42435e35
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoDeclare these metatypes.
Michael Goddard [Tue, 25 Oct 2011 02:57:05 +0000 (12:57 +1000)]
Declare these metatypes.

Change-Id: I5b10669f2b17f67d95469dc28e99822d7f08280c
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoAdapt to QtDeclarative api renaming (QSG --> QQuick)
Kent Hansen [Thu, 20 Oct 2011 06:37:39 +0000 (08:37 +0200)]
Adapt to QtDeclarative api renaming (QSG --> QQuick)

Change-Id: Iefee24c6262679263caef1976d0d9af541834ea0
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed compile; QDesktopServices -> QStandardPaths
Rohan McGovern [Mon, 24 Oct 2011 03:04:56 +0000 (13:04 +1000)]
Fixed compile; QDesktopServices -> QStandardPaths

Broken by qtbase dfa24768a3243eda68d91f573050bf23f96da2dd.

Change-Id: Ie0d79eaee5c6fedfaacae69800f6aec9190f83db
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded RDS functionality to the QRadioTuner/QDeclarativeRadio
Sami Nurmenniemi [Tue, 11 Oct 2011 06:06:12 +0000 (09:06 +0300)]
Added RDS functionality to the QRadioTuner/QDeclarativeRadio

Change-Id: I865e3caba82977002cf1f01f1d64ee0a42de77c6
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoLimit the sequential bytes skipping to a max 16kB at a time.
Michael Goddard [Fri, 21 Oct 2011 01:32:21 +0000 (11:32 +1000)]
Limit the sequential bytes skipping to a max 16kB at a time.

Otherwise QIODevice::read will try and allocate whatever junk is
passed in, so a corrupt chunk can result in 1GB+ allocations which
are never actually used.

Change-Id: I1ea4a5c1a5d21b1ee6f7e428105c52c0ee6ca7f7
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix debug output test - type is qreal, so can be float or double.
Michael Goddard [Fri, 21 Oct 2011 01:16:26 +0000 (11:16 +1000)]
Fix debug output test - type is qreal, so can be float or double.

Change-Id: Ica34e3076b186c4e4af4492722c1fe00445d3184
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded testcase to qcamerabackend test CONFIG
Dmytro Poplavskiy [Thu, 20 Oct 2011 04:04:36 +0000 (14:04 +1000)]
Added testcase to qcamerabackend test CONFIG

To ensure the test case is installed.

Change-Id: I959a1d73e3d8c913c4f15bb9e12b663ca4fb0343
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFixed build problems with Quicktime
Jonas Rabbe [Thu, 20 Oct 2011 02:45:28 +0000 (12:45 +1000)]
Fixed build problems with Quicktime

Because the Q_WS_* defines were removed, the Quicktime backend
stopped working. Replacing them with Q_OS_* works. Additionally,
the Quicktimer Player Service has to depend on QtWidgets.

Change-Id: I687b352191c38a91edaaf2a687ac13ed118fcf88
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoDoc: Add ability to generate documentation for the module.
Jerome Pasion [Wed, 12 Oct 2011 13:21:24 +0000 (15:21 +0200)]
Doc: Add ability to generate documentation for the module.

-Added targets so that "make docs" will generate the
documentation.

Change-Id: I16a74d7e15e12df16570f110c7e67a110d53afad
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoInit mediaobject at classBegin rather than componentComplete
Ling Hu [Fri, 14 Oct 2011 00:36:49 +0000 (10:36 +1000)]
Init mediaobject at classBegin rather than componentComplete

Since we use an explicit backgroundaudio class,
there is no need to wait for other property to determine
the mediaobject type. So it is better to init the mediaobject
at classBegin to prevent being accessed before mediaobject initialized.

Change-Id: Ia55b8b4c1ab70cc0acbf6f49bcb3e20bdb813a88
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMake the C++ API of QSoundEffect public.
Michael Goddard [Mon, 17 Oct 2011 02:12:43 +0000 (12:12 +1000)]
Make the C++ API of QSoundEffect public.

The QML API already was.  The C++ API still needs good documentation,
though.

Change-Id: I669f5ec7dd17d616788d71d77dc906acc0c0279f
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoDeclarative VideoOutput: added support for more rgb formats.
Dmytro Poplavskiy [Fri, 14 Oct 2011 02:36:18 +0000 (12:36 +1000)]
Declarative VideoOutput: added support for more rgb formats.

RGB 565, RGB 32 and BGR 32 formats added,
all of them supported with OpenGL ES.

Change-Id: I026628611c59575af5934bac0a5f95dfbc6770cb
Reviewed-on: http://codereview.qt-project.org/6644
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoCopied ALSA config test into QtMultimedia module
Jonas Rabbe [Fri, 14 Oct 2011 02:49:25 +0000 (12:49 +1000)]
Copied ALSA config test into QtMultimedia module

The config test which still exists in QtBase should be removed at a
later date, together with pulseaudio and gstreamer config tests.

Change-Id: I4bea45ab69d1bac10814fc60ecf24dbc859b0f20
Reviewed-on: http://codereview.qt-project.org/6643
Reviewed-by: Ling Hu <ling.hu@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMake sure this library gets installed.
Michael Goddard [Fri, 14 Oct 2011 01:49:41 +0000 (11:49 +1000)]
Make sure this library gets installed.

Change-Id: I6b556b3b22deae002d2d2cf47680f23e207b5d00
Reviewed-on: http://codereview.qt-project.org/6639
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoFix qwavedecoder test data deployment on device
Kalle Juhani Lehtonen [Thu, 13 Oct 2011 07:16:51 +0000 (17:16 +1000)]
Fix qwavedecoder test data deployment on device

- Device deployment changed to use DEPLOYMENT instead of INSTALLS for
test data files
- Test data deployment target fixed to go under binary
installation directory instead of the build directory

Change-Id: I4b0007f9309767083a4a5dfa6f3dc26f3c36c330
Reviewed-on: http://codereview.qt-project.org/6573
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMultimedia: Compile on Windows.
Friedemann Kleint [Wed, 12 Oct 2011 06:53:21 +0000 (08:53 +0200)]
Multimedia: Compile on Windows.

MSVC is more strict about #include <> and #include "".

Reviewed-by: Ling Hu <ling.hu@nokia.com>
Change-Id: I8973d7b2717d892407ad93785f92a64b05bdb6b5
Reviewed-on: http://codereview.qt-project.org/6134
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 years agoMoved general gstreamer helper classes into separate library.
Jonas Rabbe [Tue, 11 Oct 2011 05:25:36 +0000 (15:25 +1000)]
Moved general gstreamer helper classes into separate library.

Cleaned up configuration of gstreamer with a separate config
test.

Change-Id: I1ec9ee466233687fbcfdc544a12d9fce578e4379
Reviewed-on: http://codereview.qt-project.org/6459
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed a couple of failing auto tests.
Jonas Rabbe [Tue, 11 Oct 2011 21:41:09 +0000 (07:41 +1000)]
Fixed a couple of failing auto tests.

QDeclarativeAudio test is using a fake backend initialised
to a specific volume. The test was testing against a
different volume.

QMediaPlayerWidgets was trying to include QApplication,
but from the wrong place and was not including QtWidgets
module.

Change-Id: I5ca108a040a4f4bd0d7550268f3a4ef5d790e755
Reviewed-on: http://codereview.qt-project.org/6458
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoTests should not be unconditionally excluded.
Jonas Rabbe [Tue, 11 Oct 2011 05:59:56 +0000 (15:59 +1000)]
Tests should not be unconditionally excluded.

Change-Id: I3910a03e5c2231f91b84b368339948fbca750f28
Reviewed-on: http://codereview.qt-project.org/6399
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdd QNAM tests to wavedecoder as well, to simulate slow sources.
Michael Goddard [Tue, 11 Oct 2011 06:41:05 +0000 (16:41 +1000)]
Add QNAM tests to wavedecoder as well, to simulate slow sources.

Change-Id: Ic65659bfdf72aea2cea5ae97de50a1e661db189b
Reviewed-on: http://codereview.qt-project.org/6404
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoRename the parsing error signal to parsingError.
Michael Goddard [Tue, 11 Oct 2011 06:38:34 +0000 (16:38 +1000)]
Rename the parsing error signal to parsingError.

Refactor the error handling code a little.

Change-Id: I717b3aaacb24660b3f26769f19ac718b73106473
Reviewed-on: http://codereview.qt-project.org/6401
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFix the wavedecoder a little.
Michael Goddard [Tue, 11 Oct 2011 03:50:50 +0000 (13:50 +1000)]
Fix the wavedecoder a little.

Handle RIFX and corrupted files better.  Update the autotest so that it
is run properly (and copies files properly in shadow build).  Fix the
gendata script to properly create testdata.

Change-Id: I47b705507bebaef54df2835ec767c6b220c64678
Reviewed-on: http://codereview.qt-project.org/6380
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agotests: eliminated usage of qttest_p4.prf
Rohan McGovern [Tue, 11 Oct 2011 03:59:32 +0000 (13:59 +1000)]
tests: eliminated usage of qttest_p4.prf

Change-Id: I45f6c818c9dbdcf37c9f5f382b42da9c69618311
Reviewed-on: http://codereview.qt-project.org/6382
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoonly corrupt 'data' descriptor nothing else
hawcroft [Mon, 10 Oct 2011 04:31:09 +0000 (14:31 +1000)]
only corrupt 'data' descriptor nothing else

Change-Id: I5640d13e8c893152e449d348f8bf6c45b899b44d
Reviewed-on: http://codereview.qt-project.org/6283
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agotests: eliminated usage of qttest_p4.prf
Rohan McGovern [Mon, 10 Oct 2011 04:59:27 +0000 (14:59 +1000)]
tests: eliminated usage of qttest_p4.prf

qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4.
It enables various crufty undocumented magic, of dubious value.
Stop using it, and explicitly enable the things from it which we want.

Change-Id: I3f49fd3b79899eff1d6ad9458143f34419026276
Reviewed-on: http://codereview.qt-project.org/6286
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
12 years agoAuto test for private class QWaveDecoder
hawcroft [Mon, 10 Oct 2011 03:36:02 +0000 (13:36 +1000)]
Auto test for private class QWaveDecoder

Change-Id: I50ffbc3187ae7d7a7623af3ef7d3fed2975bdbbe
Reviewed-on: http://codereview.qt-project.org/6270
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Sanity-Review: Michael Goddard <michael.goddard@nokia.com>

12 years agobail out in case of missing descriptors
hawcroft [Mon, 10 Oct 2011 03:55:02 +0000 (13:55 +1000)]
bail out in case of missing descriptors

Change-Id: I7c231367a4b5ef2d15fd1a7af2c2a6c1d51c9460
Reviewed-on: http://codereview.qt-project.org/6279
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoImprove video test coverage and debugging output.
Michael Goddard [Fri, 7 Oct 2011 02:03:35 +0000 (12:03 +1000)]
Improve video test coverage and debugging output.

Added a few debug operators for some useful enums, and
added tests for them.  One or two other features not really
tested.

Change-Id: Idffec6ade1d4e05dbf72f3dc47dfc0d01ddddf8b
Reviewed-on: http://codereview.qt-project.org/6201
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRename QtMultimediaKit to QtMultimedia.
Michael Goddard [Thu, 6 Oct 2011 04:31:58 +0000 (14:31 +1000)]
Rename QtMultimediaKit to QtMultimedia.

There are a few legacy bits left in place so it passes CI, and
then qt5.git etc can be updated.

Change-Id: I6b082e50e6958c72fdabc2974992e16d90dafa3a
Reviewed-on: http://codereview.qt-project.org/5368
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd a new servicename for background mediaplayer
Ling Hu [Fri, 9 Sep 2011 01:23:37 +0000 (11:23 +1000)]
Add a new servicename for background mediaplayer

Change-Id: I40b3670462f0b865a9e64bd2abd6d6a01db01e80
Reviewed-on: http://codereview.qt-project.org/4492
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoUpdate background audio element to use new service name
Ling Hu [Fri, 9 Sep 2011 01:25:53 +0000 (11:25 +1000)]
Update background audio element to use new service name

Change-Id: I8f0480e4fb40b034f75dcd900f2d440fd0e7610d
Reviewed-on: http://codereview.qt-project.org/4493
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoUpdate audiooutput example with volume slider
hawcroft [Wed, 28 Sep 2011 03:04:18 +0000 (13:04 +1000)]
Update audiooutput example with volume slider

Update example for new volume API

Change-Id: I1b9ccbccc62930549e667f0063b3d76feb23a2ea
Reviewed-on: http://codereview.qt-project.org/5662
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoAdd QAudioOutput volume API and pulseaudio backend implementation.
hawcroft [Wed, 28 Sep 2011 03:20:26 +0000 (13:20 +1000)]
Add QAudioOutput volume API and pulseaudio backend implementation.

Change-Id: I70784e8d17522a23f6467713d58384b30557694b
Reviewed-on: http://codereview.qt-project.org/5663
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFakeradio: emit signal when scanning aborted
Jonas Rabbe [Tue, 27 Sep 2011 02:25:49 +0000 (12:25 +1000)]
Fakeradio: emit signal when scanning aborted

Patch from Sami Nurmenniemi.

Emits searchingChanged(false)
when scanning is aborted because it was initiated too close to
the limits of the frequency range.

Change-Id: I15a1334c8a7058dd8eb413c2742f8f12aed7bed5
Reviewed-on: http://codereview.qt-project.org/5570
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoGst player backend: don't show the first frame when resuming playback.
Dmytro Poplavskiy [Mon, 29 Aug 2011 06:09:04 +0000 (16:09 +1000)]
Gst player backend: don't show the first frame when resuming playback.

It's necessary to temporarily disable show-preroll-frame of video sink,
load pipeline to paused state, seek to requested position,
and after seeking is finished (position updated) playback is started
with show-preroll-frame restored.

Task-number: MOBILITY-3030
Reviewed-by: Jonas Rabbe
Change-Id: Ide1e6d909dd53f670229c293bc6be496a54e8626
(cherry picked from commit 625cce87e28fc7b5ec8785824affb3129fd3607b)
Reviewed-on: http://codereview.qt-project.org/5500
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoNeeds widgets module to build.
hawcroft [Mon, 26 Sep 2011 04:39:29 +0000 (14:39 +1000)]
Needs widgets module to build.

Change-Id: I95ba0c64843bfcdfc9797c4d818ac17606e4a1d3
Reviewed-on: http://codereview.qt-project.org/5563
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoFix a few QT_BEGIN/END_HEADER pairs.
Michael Goddard [Mon, 26 Sep 2011 07:07:49 +0000 (17:07 +1000)]
Fix a few QT_BEGIN/END_HEADER pairs.

Change-Id: Ie723af34680222b939aeb0179df21d63cec3cf3b
Reviewed-on: http://codereview.qt-project.org/5514
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoRemove QApplication usage - it's in QCoreApplication.
Michael Goddard [Mon, 26 Sep 2011 06:49:20 +0000 (16:49 +1000)]
Remove QApplication usage - it's in QCoreApplication.

Change-Id: I0c1fab0c0eea56f1ecb141d6238acdf2778c82d8
Reviewed-on: http://codereview.qt-project.org/5513
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Sergey Dubitskiy <sergey.dubitskiy@nokia.com>
12 years agoMove the backend specific documentation into a nicer place.
Michael Goddard [Wed, 31 Aug 2011 07:37:58 +0000 (17:37 +1000)]
Move the backend specific documentation into a nicer place.

We really don't need to bore the 99.9% of people who won't care.  And
it's certainly not more important than camera.

Reviewed-by: Derick Hawcroft
(cherry picked from commit 51e3a1bc45ffc2688fcd3949216aedda4c41bf81)

Change-Id: I8add47e42c2c06bf5e16f406604a19531af6901e
Reviewed-on: http://codereview.qt-project.org/5501
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix a playback bug for mediaplayer windows media foundation backend
Ling Hu [Mon, 15 Aug 2011 01:17:23 +0000 (11:17 +1000)]
Fix a playback bug for mediaplayer windows media foundation backend

Task-number:QTMOBILITY-1606

Reviewed-by:Jonas Rabbe
(cherry picked from commit d5426bf52e19c9c6a52837b423f48024979ea076)

Change-Id: Ie7c1c90a8f5a64e77c435ffc1917d8f9638dfff3
Reviewed-on: http://codereview.qt-project.org/5499
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed directshow config test
Gareth Stockwell [Mon, 1 Aug 2011 10:17:29 +0000 (11:17 +0100)]
Fixed directshow config test

In some versions of Microsoft Windows SDK v6.0A, the qedit.h header is
present, but dxtrans.h (which is #included by qedit.h) is missing.

The standard workaround for this issue is already used by
plugins/multimedia/directshow/camera/dscamerasession.h; this commit adds
the same workaround to the config test.

Reviewed-by: Michael Goddard
Reviewed-by: Ling Hu
(cherry picked from commit e3c07dc9dd6a9f7930ca3c61cfd667d816731ce1)

Change-Id: Ia53c4f6b3efc86e2447a39e6d95e7f67d7e46b5d
Reviewed-on: http://codereview.qt-project.org/5498
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFixed a typo in the WMF backend which caused a compilation failure
Gareth Stockwell [Wed, 27 Jul 2011 12:44:37 +0000 (13:44 +0100)]
Fixed a typo in the WMF backend which caused a compilation failure

Reviewed-by: trustme
(cherry picked from commit 7eab979c41513321518d5e3cea6d142bbf4e58d9)

Change-Id: I9cd5de907867ea6561c568d10c88e3bf5a701509
Reviewed-on: http://codereview.qt-project.org/5496
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agofix a spelling error
Ling Hu [Wed, 27 Jul 2011 07:41:25 +0000 (17:41 +1000)]
fix a spelling error

Change-Id: Ic593f342055a4ff65503bd92236ff2904012d4f4
Reviewed-by:Michael Goddard
(cherry picked from commit d9cd5386f6d9aa1c702424d272d70a0b45a6b9db)
Reviewed-on: http://codereview.qt-project.org/5495
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix config.tests for directshow backend.
Ling Hu [Wed, 27 Jul 2011 00:26:59 +0000 (10:26 +1000)]
Fix config.tests for directshow backend.

directshow camera backend requires header qedit.h(currently removed since Windows SDK v7.0),
so if there is only Windows SDK v7.0, directshow backend should be disabled, since the directshow
mediaplayer will also be replaced by wmf backend.

Change-Id: I0de60fdcb683a57cc0aa3570f769179afc0c581b
Reviewed-by:Michael Goddard
(cherry picked from commit 68d78008f9d1eb82de673b8f4c8e73bdde2150c2)
Reviewed-on: http://codereview.qt-project.org/5494
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix the config.tests for WMF backend.
Ling Hu [Wed, 27 Jul 2011 00:22:19 +0000 (10:22 +1000)]
Fix the config.tests for WMF backend.

Windows SDK v7.0 is required to compile the WMF backend,
so add additional check for MENonFatalError.

Change-Id: I3edb86b8132b8022b30c02ea6289f617aadfc683
Reviewed-by: Michael Goddard
(cherry picked from commit b738126352e5d914ea366b2725b72e2306b39ee2)
Reviewed-on: http://codereview.qt-project.org/5493
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMerge branch 'camera' of ssh://codereview.qt-project.org:29418/qt/qtmultimediakit
Michael Goddard [Mon, 26 Sep 2011 04:17:32 +0000 (14:17 +1000)]
Merge branch 'camera' of ssh://codereview.qt-project.org:29418/qt/qtmultimediakit

Conflicts:
src/imports/multimedia/multimedia.cpp
src/imports/multimedia/multimedia.pro

Change-Id: I9d4bc1aa65f89ac24dd12c1e2c21a02f49913e13

12 years agoMove resource policy usage to a config test.
Michael Goddard [Fri, 23 Sep 2011 07:49:49 +0000 (17:49 +1000)]
Move resource policy usage to a config test.

MeeGo uses this too.

Change-Id: I0b7ec00538289d4a3beea62da08233c0d1eb45a2
Reviewed-on: http://codereview.qt-project.org/5447
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoClean some doc warnings.
Michael Goddard [Thu, 22 Sep 2011 05:03:51 +0000 (15:03 +1000)]
Clean some doc warnings.

Change-Id: I9cadc589a02bbc4804d2d21ab30752af375ef89c
Reviewed-on: http://codereview.qt-project.org/5348
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Ling Hu <ling.hu@nokia.com>
12 years agoAdd QT_BEGIN/END_HEADER things, plus QT_MODULE thing.
Michael Goddard [Thu, 22 Sep 2011 04:27:31 +0000 (14:27 +1000)]
Add QT_BEGIN/END_HEADER things, plus QT_MODULE thing.

Change-Id: I1a5f51a659175cadadcdaf0c4e5e9048f98e64e0
Reviewed-on: http://codereview.qt-project.org/5346
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix widget dependencies for multimediawidget tests and examples.
Gunnar Sletta [Wed, 21 Sep 2011 07:11:43 +0000 (09:11 +0200)]
Fix widget dependencies for multimediawidget tests and examples.

Change-Id: I9c7600ce2cf7980f923ba038ef122b49add24c37
Reviewed-on: http://codereview.qt-project.org/5286
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoRemove older QGLContext calls in favour of new QOpenGLContext.
Michael Goddard [Thu, 22 Sep 2011 02:28:40 +0000 (12:28 +1000)]
Remove older QGLContext calls in favour of new QOpenGLContext.

Change-Id: I2669f48ebac5c14f5aaf85135f3d0adbf541d877
Reviewed-on: http://codereview.qt-project.org/5339
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoDon't re-set default properties in MediaBase::componentComplete
Ling Hu [Thu, 8 Sep 2011 07:15:15 +0000 (17:15 +1000)]
Don't re-set default properties in MediaBase::componentComplete

This is to avoid conflicting with state restore from background playback.

Change-Id: Idc5440b55a27bb5c5109717f405591e934bbedbc
Reviewed-on: http://codereview.qt-project.org/4397
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoadd QT+=widgets for tests to run
Gunnar Sletta [Tue, 20 Sep 2011 05:28:19 +0000 (07:28 +0200)]
add QT+=widgets for tests to run

Change-Id: Idccbb5429f1f081d815b4596f0cf0f74c1160f5c
Reviewed-on: http://codereview.qt-project.org/5188
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdded basic radio system tests
dakovaci [Thu, 15 Sep 2011 06:39:19 +0000 (16:39 +1000)]
Added basic radio system tests

Change-Id: I6f3ef3e3c9f1bb851c2d9f9cbad1aea1df77004f
Reviewed-on: http://codereview.qt-project.org/4945
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoAdded basic camera system tests
dakovaci [Thu, 15 Sep 2011 06:38:05 +0000 (16:38 +1000)]
Added basic camera system tests

Change-Id: I39cefa9207bf45d57cb735cb1a7335b9153d79ee
Reviewed-on: http://codereview.qt-project.org/4944
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoadded basic video system tests
dakovaci [Thu, 15 Sep 2011 06:36:13 +0000 (16:36 +1000)]
added basic video system tests

Change-Id: I89cadef1249296c834c4a612f5885439986ff1dc
Reviewed-on: http://codereview.qt-project.org/4943
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daron Andrew Edie
12 years agoAdded basic audio system tests
dakovaci [Thu, 15 Sep 2011 06:18:11 +0000 (16:18 +1000)]
Added basic audio system tests

Change-Id: Ib3cec8adc4cba80a9e91d6fd90c607e99a197c0c
Reviewed-on: http://codereview.qt-project.org/4942
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Daniel Kovacic <daniel.kovacic@nokia.com>
Reviewed-by: Daron Andrew Edie
12 years agoCamerabin backend: fixed compilation without X11
Dmytro Poplavskiy [Wed, 14 Sep 2011 02:31:24 +0000 (12:31 +1000)]
Camerabin backend: fixed compilation without X11

Disable video widget and overlay controls on systems without X11

Change-Id: I0163fa83018b35ba6f0f8221ad3c465506b52d00
Reviewed-on: http://codereview.qt-project.org/4850
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoCompile with refactor
Gunnar Sletta [Wed, 14 Sep 2011 13:35:32 +0000 (15:35 +0200)]
Compile with refactor

Change-Id: I248f811a13ca00ccbf5d342a556d389bca625856
Reviewed-on: http://codereview.qt-project.org/4940
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoBuild fix after refactor
Lasse Holmstedt [Tue, 13 Sep 2011 11:18:52 +0000 (13:18 +0200)]
Build fix after refactor

Change-Id: I2de40846fc7402ddf32259d42a486a74330ff626

12 years agoQML Camera element redesign.
Dmytro Poplavskiy [Thu, 25 Aug 2011 04:05:10 +0000 (14:05 +1000)]
QML Camera element redesign.

Grouped camera properties in a similar way to C++ QCamera API.
Added support for video recording.

Change-Id: I8667dc90878b3e20eda5523ba562f5687bd0932b
Reviewed-on: http://codereview.qt-project.org/3552
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoSplit some of the autotests into widget and non widget parts.
Michael Goddard [Mon, 5 Sep 2011 06:13:46 +0000 (16:13 +1000)]
Split some of the autotests into widget and non widget parts.

Since the tests are mostly not widget based.

Change-Id: Ic3fa4224b19f2a5c710fd4763b5e645252975c1c
Reviewed-on: http://codereview.qt-project.org/4174
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoSilly defs file error.
Michael Goddard [Tue, 6 Sep 2011 01:48:41 +0000 (11:48 +1000)]
Silly defs file error.

Change-Id: Ic4c128b6c410701092848048982a8e82a5c58b88
Reviewed-on: http://codereview.qt.nokia.com/4224
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoFix some compiler warnings.
Michael Goddard [Mon, 5 Sep 2011 01:24:06 +0000 (11:24 +1000)]
Fix some compiler warnings.

Mostly about deprecated ASCII casts.

Change-Id: I70428913799c15f20a1a5f80be57848e1072e058
Reviewed-on: http://codereview.qt.nokia.com/4158
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoClean up the autotest pro files to remove warnings about private headers
Michael Goddard [Mon, 5 Sep 2011 00:53:41 +0000 (10:53 +1000)]
Clean up the autotest pro files to remove warnings about private headers

Since the tests are bound to a version it's unnecessary.

Change-Id: I7884615179157caa3836face22a4aa431ee5c425
Reviewed-on: http://codereview.qt.nokia.com/4155
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd background audio element.
Ling Hu [Thu, 25 Aug 2011 07:43:31 +0000 (17:43 +1000)]
Add background audio element.

Change-Id: I64c91beb7219cc148efc606e87e5f6e57b4b55ce
Reviewed-on: http://codereview.qt.nokia.com/3574
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoMark a few tests as insignificant on QPA.
Michael Goddard [Fri, 2 Sep 2011 02:40:56 +0000 (12:40 +1000)]
Mark a few tests as insignificant on QPA.

Running with QPA minimal isn't enough for a lot of the video related
tests, and in some cases the backing store code crashes.

Change-Id: I7a09c244fb856397a60c53388b22c3e141737a66
Reviewed-on: http://codereview.qt.nokia.com/4106
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
12 years agoAdd QMediaBackgroundPlaybackControl interface
Ling Hu [Thu, 25 Aug 2011 05:50:48 +0000 (15:50 +1000)]
Add QMediaBackgroundPlaybackControl interface

Allows some media service backend to provide the ability to can play media in the background while the application is terminated.

Change-Id: Ia5e751367f6d6ea6847c3c873b45df5f971557e2
Reviewed-on: http://codereview.qt.nokia.com/3561
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
12 years agoAdded tune up and down methods, and changed name of scan methods.
Jonas Rabbe [Wed, 31 Aug 2011 21:44:46 +0000 (07:44 +1000)]
Added tune up and down methods, and changed name of scan methods.

Instead of requiring developers using the radio API to read the
frequency step, adding it to the current frequency and setting the
new frequency, there has been added tuneUp and tuneDown methods.
Also, the searchBackward and searchForward methods have been renamed
to scanDown and scanUp which seem more logical. And cancelSearch
has become cancelScan.

Change-Id: Ib9ff61c0f58163039f41f045037cb9a11b37a59e
Reviewed-on: http://codereview.qt.nokia.com/4013
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Reviewed-by: derick hawcroft <derick.hawcroft@nokia.com>
12 years agoMerge branch 'radio' into 'master'
Jonas Rabbe [Wed, 31 Aug 2011 03:09:47 +0000 (13:09 +1000)]
Merge branch 'radio' into 'master'

Change-Id: I86243b496b9fb42f828a67343dc576baa2c21ca0

12 years agoAdded QML API for getting the limits for a specific radio band.
Jonas Rabbe [Tue, 30 Aug 2011 00:46:19 +0000 (10:46 +1000)]
Added QML API for getting the limits for a specific radio band.

Using properties for the frequency step, minimum and maximum
frequency of the currently selected band.
Also updated the declarative-radio example to use the minimum
and maximum frequencies to show a tuner band for the radio.

Change-Id: I9f28f10e98e008c14b10bdc12b0727086cd45f0b
Reviewed-on: http://codereview.qt.nokia.com/3829
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
12 years agoMerge branch 'camera' of git://scm.dev.nokia.troll.no/qt/qtmultimediakit
Michael Goddard [Tue, 30 Aug 2011 04:42:21 +0000 (14:42 +1000)]
Merge branch 'camera' of git://scm.dev.nokia.troll.no/qt/qtmultimediakit

Change-Id: Iec6f96e3713257d25f7b1e06c6da9c153b23800b