Ticket #8433: InfoWin.diff

File InfoWin.diff, 1019 bytes (added by starsseed, 8 years ago)

the rate argument is a float (not an integer)

  • src/apps/mediaplayer/InfoWin.cpp

     src/apps/mediaplayer/InfoWin.cpp |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/mediaplayer/InfoWin.cpp b/src/apps/mediaplayer/InfoWin.cpp
    index 71d987a..58622bb 100644
    a b printf("InfoWin::Update(0x%08lx)\n", which);  
    337337        s << format.Width() << " x " << format.Height();
    338338        // encoded has output as 1st field...
    339339        char fpsString[20];
    340         snprintf(fpsString, sizeof(fpsString), B_TRANSLATE("%f fps"),
     340        snprintf(fpsString, sizeof(fpsString), B_TRANSLATE("%.3f fps"),
    341341            videoFormat.field_rate);
    342342        s << ", " << fpsString << "\n\n";
    343343        fContentsView->Insert(s.String());
    printf("InfoWin::Update(0x%08lx)\n", which);  
    398398        if (sr > 0.0) {
    399399            char rateString[20];
    400400            snprintf(rateString, sizeof(rateString),
    401                 B_TRANSLATE("%d kHz"), sr / 1000);
     401                B_TRANSLATE("%.3f kHz"), sr / 1000);
    402402            s << rateString;
    403403        } else {
    404404            BString rateString = B_TRANSLATE("%d kHz");