diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2013-03-14 10:58:44 +0100 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@digia.com> | 2013-03-14 10:58:44 +0100 |
commit | 9408807bb0fd7a9a83531241a8e7b8f8d9d76dd1 (patch) | |
tree | bff12408f5bc6c3cf0849b8f683e0380c51139d1 /src/imports/nativemedia/omxnode.h | |
parent | 1d5cbee9ef561634dcf55208ec135c6f61c66bb2 (diff) |
Made OMX initializing a bit more robust.
We should do it on the rendering thread where there's a current context
since we're calling glGenTextures() etc.
Diffstat (limited to 'src/imports/nativemedia/omxnode.h')
-rw-r--r-- | src/imports/nativemedia/omxnode.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/imports/nativemedia/omxnode.h b/src/imports/nativemedia/omxnode.h index 976830c..22bbb4a 100644 --- a/src/imports/nativemedia/omxnode.h +++ b/src/imports/nativemedia/omxnode.h @@ -23,7 +23,6 @@ public: ~OmxNode(); void preprocess(); - void updateTexture(); void setRect(const QRectF &rect); inline void setRect(qreal x, qreal y, qreal w, qreal h) { setRect(QRectF(x, y, w, h)); } @@ -91,10 +90,12 @@ signals: protected: QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *); + void itemChange(ItemChange change, const ItemChangeData &); private slots: void triggerRender(); void videoSize(int w, int h); + void beforeRendering(); private: OmxPlayer *m_player; |