Mercurial > mplayer.hg
comparison mplayer.c @ 16938:2099e842ffb0
there is no sh_video for audio only files
author | faust3 |
---|---|
date | Sun, 06 Nov 2005 18:01:52 +0000 |
parents | ef03a74ca7af |
children | 2026ca5663cc |
comparison
equal
deleted
inserted
replaced
16937:4d340b1aeed4 | 16938:2099e842ffb0 |
---|---|
2857 while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) { | 2857 while( !brk_cmd && (cmd = mp_input_get_cmd(0,0,0)) != NULL) { |
2858 switch(cmd->id) { | 2858 switch(cmd->id) { |
2859 case MP_CMD_SEEK : { | 2859 case MP_CMD_SEEK : { |
2860 float v; | 2860 float v; |
2861 int abs; | 2861 int abs; |
2862 osd_show_percentage = sh_video->fps; | 2862 if(sh_video) |
2863 osd_show_percentage = sh_video->fps; | |
2863 v = cmd->args[0].v.f; | 2864 v = cmd->args[0].v.f; |
2864 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; | 2865 abs = (cmd->nargs > 1) ? cmd->args[1].v.i : 0; |
2865 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ | 2866 if(abs==2) { /* Absolute seek to a specific timestamp in seconds */ |
2866 abs_seek_pos = 1; | 2867 abs_seek_pos = 1; |
2867 if(sh_video) | 2868 if(sh_video) |