summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphelin <phelin>2008-04-10 22:25:02 +0000
committerphelin <phelin>2008-04-10 22:25:02 +0000
commit161da8f4cfa0d174eede7aaf84e089303b0f12e5 (patch)
tree1fd8750280f68c2ed9c22908fa745e175d949bcb
parent5cecfd62e9ba3f1bdc0191dae97b7af5076a0db2 (diff)
downloadxineliboutput-161da8f4cfa0d174eede7aaf84e089303b0f12e5.tar.gz
xineliboutput-161da8f4cfa0d174eede7aaf84e089303b0f12e5.tar.bz2
Fix the case when watching image files and the first one just flashes and
gets replaced by black image.
-rw-r--r--device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/device.c b/device.c
index 02513638..996fa7da 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c,v 1.54 2008-03-16 21:40:57 phintuka Exp $
+ * $Id: device.c,v 1.55 2008-04-10 22:25:02 phelin Exp $
*
*/
@@ -914,7 +914,8 @@ bool cXinelibDevice::PlayFile(const char *FileName, int Position,
if(FileName) {
if(m_PlayingFile == pmNone) {
m_PlayingFile = PlayMode;
- StopOutput();
+ if (!xc.IsImageFile(FileName))
+ StopOutput();
}
for(int i = 0; i < mi_Count; i++)
m_MetaInfo[i][0] = 0;