fix framerate for movieplayer

Origin commit data
------------------
Branch: master
Commit: 30ab6eebc4
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2018-05-29 (Tue, 29 May 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2018-05-29 18:06:21 +02:00
committed by max_10
parent 6b681a5c71
commit d4d6e0f2a1

View File

@@ -730,7 +730,10 @@ void cVideo::getPictureInfo(int &width, int &height, int &rate)
if (fd == -1)
{
/* in movieplayer mode, fd is not opened -> fall back to procfs */
r = proc_get_hex(VMPEG_framerate[devnum]);
char buf[16];
int n = proc_get(VMPEG_framerate[devnum], buf, 16);
if (n > 0)
sscanf(buf, "%i", &r);
width = proc_get_hex(VMPEG_xres[devnum]);
height = proc_get_hex(VMPEG_yres[devnum]);
rate = rate2csapi(r);