From 161da8f4cfa0d174eede7aaf84e089303b0f12e5 Mon Sep 17 00:00:00 2001 From: phelin Date: Thu, 10 Apr 2008 22:25:02 +0000 Subject: Fix the case when watching image files and the first one just flashes and gets replaced by black image. --- device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'device.c') 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; -- cgit v1.2.3