Skip to content
This repository
Browse code

Merge pull request #2755 from popcornmix/hang_eos_seek

[rbp/omxplayer] Fix for hang following seek after eos
  • Loading branch information...
commit 60f29a0e155121f7dd982d5172869279e36380d4 2 parents 79c4903 + 5b75f44
huceke authored May 15, 2013

Showing 1 changed file with 7 additions and 1 deletion. Show diff stats Hide diff stats

  1. 8  xbmc/cores/omxplayer/OMXPlayer.cpp
8  xbmc/cores/omxplayer/OMXPlayer.cpp
@@ -1178,7 +1178,13 @@ void COMXPlayer::Process()
1178 1178
       CDVDDemuxUtils::FreeDemuxPacket(pPacket);
1179 1179
       continue;
1180 1180
     }
1181  
-
  1181
+    if (pPacket)
  1182
+    {
  1183
+      // reset eos state when we get a packet (e.g. for case of seek after eos)
  1184
+      bOmxWaitVideo = false;
  1185
+      bOmxWaitAudio = false;
  1186
+      bOmxSentEOFs = false;
  1187
+    }
1182 1188
     if (!pPacket)
1183 1189
     {
1184 1190
       // when paused, demuxer could be be returning empty

0 notes on commit 60f29a0

Please sign in to comment.
Something went wrong with that request. Please try again.