mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xbmc (Gotham): add patch to fix for hang following seek after eos
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
04dcb1c43e
commit
df6f2858b3
@ -0,0 +1,32 @@
|
||||
From 5b75f44b448bcefb9b802a3a28d0e6846284d22e Mon Sep 17 00:00:00 2001
|
||||
From: popcornmix <popcornmix@gmail.com>
|
||||
Date: Mon, 6 May 2013 14:20:05 +0100
|
||||
Subject: [PATCH] [rbp/omxplayer] Fix for hang following seek after eos
|
||||
|
||||
If you seek after the demuxer eof, the eof state is cleared, but we are not clearing the flags relating to sending eos stream to audio/video players
|
||||
---
|
||||
xbmc/cores/omxplayer/OMXPlayer.cpp | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xbmc/cores/omxplayer/OMXPlayer.cpp b/xbmc/cores/omxplayer/OMXPlayer.cpp
|
||||
index 156a3ad..82d0024 100644
|
||||
--- a/xbmc/cores/omxplayer/OMXPlayer.cpp
|
||||
+++ b/xbmc/cores/omxplayer/OMXPlayer.cpp
|
||||
@@ -1178,7 +1178,13 @@ void COMXPlayer::Process()
|
||||
CDVDDemuxUtils::FreeDemuxPacket(pPacket);
|
||||
continue;
|
||||
}
|
||||
-
|
||||
+ if (pPacket)
|
||||
+ {
|
||||
+ // reset eos state when we get a packet (e.g. for case of seek after eos)
|
||||
+ bOmxWaitVideo = false;
|
||||
+ bOmxWaitAudio = false;
|
||||
+ bOmxSentEOFs = false;
|
||||
+ }
|
||||
if (!pPacket)
|
||||
{
|
||||
// when paused, demuxer could be be returning empty
|
||||
--
|
||||
1.8.1.6
|
||||
|
Loading…
x
Reference in New Issue
Block a user