1 |
From c62a87e774a9aa8eb32be811e822481825048f23 Mon Sep 17 00:00:00 2001 |
2 |
From: elupus <elupus@xbmc.org> |
3 |
Date: Mon, 2 Apr 2012 20:55:51 +0200 |
4 |
Subject: [PATCH 138/145] [dvdplayer] previous picture is invalidated by a |
5 |
call to codec reset (cherry picked from commit |
6 |
c0a367a4ecec766dc04e15d58f22c4860a04acca) |
7 |
|
8 |
--- |
9 |
xbmc/cores/dvdplayer/DVDPlayerVideo.cpp | 2 ++ |
10 |
1 file changed, 2 insertions(+) |
11 |
|
12 |
diff --git a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp |
13 |
index e28faaf..eb51038 100644 |
14 |
--- a/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp |
15 |
+++ b/xbmc/cores/dvdplayer/DVDPlayerVideo.cpp |
16 |
@@ -413,6 +413,7 @@ void CDVDPlayerVideo::Process() |
17 |
{ |
18 |
if(m_pVideoCodec) |
19 |
m_pVideoCodec->Reset(); |
20 |
+ picture.iFlags &= ~DVP_FLAG_ALLOCATED; |
21 |
m_packets.clear(); |
22 |
m_started = false; |
23 |
} |
24 |
@@ -420,6 +421,7 @@ void CDVDPlayerVideo::Process() |
25 |
{ |
26 |
if(m_pVideoCodec) |
27 |
m_pVideoCodec->Reset(); |
28 |
+ picture.iFlags &= ~DVP_FLAG_ALLOCATED; |
29 |
m_packets.clear(); |
30 |
|
31 |
m_pullupCorrection.Flush(); |
32 |
-- |
33 |
1.7.10 |
34 |
|