1 | Index: programs/mythtranscode/mpeg2fix.cpp
|
---|
2 | ===================================================================
|
---|
3 | --- programs/mythtranscode/mpeg2fix.cpp (revision 8517)
|
---|
4 | +++ programs/mythtranscode/mpeg2fix.cpp (working copy)
|
---|
5 | @@ -208,8 +208,8 @@
|
---|
6 | statustime = QDateTime::currentDateTime();
|
---|
7 | statustime = statustime.addSecs(5);
|
---|
8 |
|
---|
9 | - struct stat filestat;
|
---|
10 | - if(stat(inf, &filestat)) {
|
---|
11 | + struct stat64 filestat;
|
---|
12 | + if(stat64(inf, &filestat)) {
|
---|
13 | }
|
---|
14 | filesize = filestat.st_size;
|
---|
15 | }
|
---|
16 | @@ -1165,8 +1165,8 @@
|
---|
17 | }
|
---|
18 | if (showprogress && QDateTime::currentDateTime() > statustime)
|
---|
19 | {
|
---|
20 | - VERBOSE(MPF_IMPORTANT, QString("%%1 complete")
|
---|
21 | - .arg(100*pkt->pos/filesize));
|
---|
22 | + VERBOSE(MPF_IMPORTANT, QString("%1% complete")
|
---|
23 | + .arg(100.0*pkt->pos/filesize, 0, 'f', 1));
|
---|
24 | statustime = QDateTime::currentDateTime();
|
---|
25 | statustime = statustime.addSecs(5);
|
---|
26 | }
|
---|