diff options
Diffstat (limited to 'client/decoder.h')
-rw-r--r-- | client/decoder.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/decoder.h b/client/decoder.h index 0913858..6cb6a22 100644 --- a/client/decoder.h +++ b/client/decoder.h @@ -46,16 +46,19 @@ public: void snapshot(char *rgb); + char *pframeAcquire(); + void pframeRelease(); + protected: bool eventFilter(QObject *o, QEvent *e); private: volatile bool running; - char *frame; - QSemaphore semaphore; + QSemaphore closesem; + + QMutex pmutex; + char pframe[DVPACKAGE_SIZE]; // Player frame - char screenshotframe[DVPACKAGE_SIZE]; - QSemaphore screenshotsemaphore; QMutex mutex; }; |