qtmobility/plugins/multimedia/directshow/player/directshowsamplescheduler.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 11 06b8e2af4411
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    44 
    44 
    45 #include <QtCore/qmutex.h>
    45 #include <QtCore/qmutex.h>
    46 #include <QtCore/qobject.h>
    46 #include <QtCore/qobject.h>
    47 #include <QtCore/qsemaphore.h>
    47 #include <QtCore/qsemaphore.h>
    48 
    48 
    49 #include <QtCore/private/qwineventnotifier_p.h>
       
    50 
       
    51 #include <dshow.h>
    49 #include <dshow.h>
    52 
    50 
    53 class DirectShowTimedSample;
    51 class DirectShowTimedSample;
    54 
    52 
    55 class DirectShowSampleScheduler : public QWinEventNotifier, public IMemInputPin
    53 class DirectShowSampleScheduler : public QObject, public IMemInputPin
    56 {
    54 {
    57     Q_OBJECT
    55     Q_OBJECT
    58 public:
    56 public:
    59 
    57 
    60     enum State
    58     enum State
   109     DirectShowTimedSample *m_tail;
   107     DirectShowTimedSample *m_tail;
   110     int m_maximumSamples;
   108     int m_maximumSamples;
   111     int m_state;
   109     int m_state;
   112     REFERENCE_TIME m_startTime;
   110     REFERENCE_TIME m_startTime;
   113     HANDLE m_timeoutEvent;
   111     HANDLE m_timeoutEvent;
       
   112     HANDLE m_flushEvent;
   114     QSemaphore m_semaphore;
   113     QSemaphore m_semaphore;
   115     QMutex m_mutex;
   114     QMutex m_mutex;
   116 };
   115 };
   117 
   116 
   118 #endif
   117 #endif