X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fservice%2Fservicemp3.cpp;h=2c84f7befd831318a15dca68f881241dc524512b;hp=cf71f78184f2bd495ad5e520f444c32ebbd29870;hb=a8d991ca3b2f7cd9b85bd54ea4eaa661c06a3d71;hpb=812cf012acb92112b4f5f3bc6d2728c23448934b diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index cf71f78..2c84f7b 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -189,6 +189,25 @@ int eStaticServiceMP3Info::getLength(const eServiceReference &ref) return -1; } +int eStaticServiceMP3Info::getInfo(const eServiceReference &ref, int w) +{ + switch (w) + { + case iServiceInformation::sTimeCreate: + { + struct stat s; + if(stat(ref.path.c_str(), &s) == 0) + { + return s.st_mtime; + } + return iServiceInformation::resNA; + } + default: break; + } + return iServiceInformation::resNA; +} + + // eServiceMP3 int eServiceMP3::ac3_delay, eServiceMP3::pcm_delay;