]> git.vomp.tv Git - vompclient.git/commitdiff
Block mediapackets on pause
authorMarten Richter <marten.richter@freenet.de>
Sun, 11 Nov 2012 11:00:53 +0000 (12:00 +0100)
committerMarten Richter <marten.richter@freenet.de>
Sun, 11 Nov 2012 11:00:53 +0000 (12:00 +0100)
audioomx.cc
videoomx.cc
videoomx.h

index 46b59ed99d7792ecf60e7a2e18e948154650edd5..8947d443d94789333694a28770dafd6998d748d2 100644 (file)
@@ -1650,7 +1650,7 @@ UINT AudioOMX::DeliverMediaPacket(MediaPacket packet, const UCHAR* buffer,
        }
 
        if (!omx_running) return 0; // if we are not runnig do not do this
-       //if (paused) return 0; //Block if we pause
+       if (vw->isClockPaused()) return 0; //Block if we pause
        //Log::getInstance()->log("Audio", Log::DEBUG, "DMP mark 1");
 
        //Log::getInstance()->log("Audio", Log::DEBUG, "DeliverMediaPacketOMX time %lld",packet.presentation_time);
index 2078de4c64cc2365afbe0d0f825f726ed777b0b8..918b71ab91561bf03301cf5d68007f41fe731af6 100644 (file)
@@ -2540,7 +2540,7 @@ UINT VideoOMX::DeliverMediaPacket(MediaPacket packet,
 
 
        if (!omx_running) return 0; // if we are not runnig do not do this
-       //if (paused) return 0; //Block if we pause
+       if (isClockPaused()) return 0; //Block if we pause
 
 //     Log::getInstance()->log("Video", Log::DEBUG, "DMP mark 1");
        //Log::getInstance()->log("Video", Log::DEBUG, "DeliverMediaPacketOMX time %lld",packet.presentation_time);
index 026757a7a127d15ff2108a0d119603d0ab7fb88c..3a7cb7a02f4228cdd2626b127d7b029952748ed4 100644 (file)
@@ -215,6 +215,7 @@ class VideoOMX : public Video
        OMX_ERRORTYPE ProtOMXEmptyThisBuffer(OMX_HANDLETYPE handle, OMX_BUFFERHEADERTYPE* buffer);
        void clockPause();
        void clockUnpause();
+       bool isClockPaused() {return clockpaused;};
 
        void interlaceSwitch4Demux();