mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
there is no sh_video for audio only files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16939 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0abc2311fe
commit
4c0cf32f51
@ -2859,7 +2859,8 @@ if (stream->type==STREAMTYPE_DVDNAV && dvd_nav_still)
|
|||||||
case MP_CMD_SEEK : {
|
case MP_CMD_SEEK : {
|
||||||
float v;
|
float v;
|
||||||
int abs;
|
int abs;
|
||||||
osd_show_percentage = sh_video->fps;
|
if(sh_video)
|
||||||
|
osd_show_percentage = sh_video->fps;
|
||||||
v = cmd->args[0].v.f;
|
v = cmd->args[0].v.f;
|
||||||
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
|
abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0;
|
||||||
if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
|
if(abs==2) { /* Absolute seek to a specific timestamp in seconds */
|
||||||
|
Loading…
Reference in New Issue
Block a user