From 7b166b95e85c897ee9a76ff8a7c700134de36cae Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 15 Mar 2009 14:51:19 +0000 Subject: [PATCH] Windows updates --- media.cc | 4 +++- vmedialist.cc | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/media.cc b/media.cc index 6361585..f376614 100644 --- a/media.cc +++ b/media.cc @@ -239,7 +239,8 @@ char * Media::getTimeString(char * buffer) const { #ifndef _MSC_VER strftime(buffer,TIMEBUFLEN, "%0g/%0m/%0d %0H:%0M ", btime); #else - strftime(buffer,TIMEBUFLEN, "%0G/%0m/%0d %0H:%0M ", btime); + strftime(buffer,TIMEBUFLEN, "%Y/%m/%d %H:%M ", btime); + #endif } else { @@ -465,3 +466,4 @@ int MediaList::deserializeImpl(SerializeBuffer *b) { + diff --git a/vmedialist.cc b/vmedialist.cc index cb73b9b..08479c8 100644 --- a/vmedialist.cc +++ b/vmedialist.cc @@ -350,7 +350,9 @@ VMediaList::VMediaList() } playingAll=false; //init additional providers +#ifndef WIN32 LocalMediaFile::init(); +#endif } @@ -819,6 +821,7 @@ int VMediaList::handleCommand(int command) playAudio(command==Remote::PLAY,true,true); break; case MEDIA_TYPE_VIDEO: { +#ifndef WIN32 //Only DVB style MPEG is supported by the Windows Part! Log::getInstance()->log("VMediaList", Log::DEBUG, "play video file %s", media->getFileName()); //OK - simply today @@ -840,6 +843,7 @@ int VMediaList::handleCommand(int command) BoxStack::getInstance()->update(v); v->go(false); //play video +#endif }break; case MEDIA_TYPE_PICTURE: Log::getInstance()->log("VMediaList", Log::DEBUG, "show picture file %s", @@ -1069,12 +1073,14 @@ void VMediaList::processMessage(Message* m) sl.draw(); doShowingBar(); boxstack->update(this); + updateSelection(); } } else if (m->message == Message::MOUSE_LBDOWN) { if (sl.mouseLBDOWN((m->parameter>>16)-getScreenX(),(m->parameter&0xFFFF)-getScreenY())) { + updateSelection(); boxstack->handleCommand(Remote::OK); //simulate OK press } else @@ -1204,3 +1210,4 @@ void VMediaList::timercall(int ref) { } } + -- 2.39.5