summaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h
diff options
context:
space:
mode:
authorJames McDonnell <jmcdonnell@blackberry.com>2017-05-30 16:40:05 -0400
committerJames McDonnell <jmcdonnell@blackberry.com>2017-10-23 18:16:00 +0000
commit08db8a408829cb3bbd204e71dd8d5616e7d21d3d (patch)
treea28348cdfcc7a6fff15a1770857da78dd0fc6dd0 /src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h
parent2ec485482d185f92e4de33f634bc3ef9dd6c9188 (diff)
Switch the metadata code to the event API
The switch is necessary because Multimedia for QNX 7.0.0 removes support for PPS based retrieval. PPS itself is deprecated in QNX 7.0.0. QNX 6.6.0 is also switched to using event notification since Multimedia for QNX 6.6.0 also supports it. There's a slight change in when metadata first becomes available because an event is used instead of file based retrieval. I think it's a necessary change because there isn't actually any guarantee that the metadata is complete at the time that the code used to request it and the code may have missed changes because it never read the information again. [ChangeLog][QNX] Switch to mmr_event_t based metadata retrieval. PPS based retrieval is not supported by Multimedia for QNX 7.0.0. Change-Id: I2b70f05422ee03d25ed2446a0e30b56b03dd82c8 Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Michael Brasser <michael.brasser@live.com> Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h')
-rw-r--r--src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h b/src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h
index 7216cc7f0..2edbd50e0 100644
--- a/src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h
+++ b/src/plugins/qnx/mediaplayer/mmrenderermediaplayercontrol.h
@@ -48,6 +48,7 @@
typedef struct mmr_connection mmr_connection_t;
typedef struct mmr_context mmr_context_t;
typedef struct mmrenderer_monitor mmrenderer_monitor_t;
+typedef struct strm_dict strm_dict_t;
QT_BEGIN_NAMESPACE
@@ -115,6 +116,7 @@ protected:
void setMmBufferLevel(const QString &bufferLevel);
void handleMmStopped();
void handleMmStatusUpdate(qint64 position);
+ void updateMetaData(const strm_dict_t *dict);
// must be called from subclass dtors (calls virtual function stopMonitoring())
void destroy();
@@ -131,7 +133,6 @@ private:
void closeConnection();
void attach();
void detach();
- void updateMetaData();
// All these set the specified value to the backend, but neither emit changed signals
// nor change the member value.