Mercurial > mplayer.hg
changeset 35014:df3b195a810d
Fix detection of -vo pgm/md5 even when suboptions are used.
author | reimar |
---|---|
date | Mon, 20 Aug 2012 18:54:59 +0000 |
parents | 4d94558867d6 |
children | 906125680c06 |
files | libvo/video_out.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/video_out.c Sat Aug 18 19:51:58 2012 +0000 +++ b/libvo/video_out.c Mon Aug 20 18:54:59 2012 +0000 @@ -318,14 +318,14 @@ while(vo_list[0][0]){ char* vo=strdup(vo_list[0]); vo_subdevice=strchr(vo,':'); + if(vo_subdevice){ + vo_subdevice[0]=0; + ++vo_subdevice; + } if (!strcmp(vo, "pgm")) mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_VO_PGM_HasBeenReplaced); if (!strcmp(vo, "md5")) mp_msg(MSGT_CPLAYER, MSGL_ERR, MSGTR_VO_MD5_HasBeenReplaced); - if(vo_subdevice){ - vo_subdevice[0]=0; - ++vo_subdevice; - } for(i=0;video_out_drivers[i];i++){ const vo_functions_t* video_driver=video_out_drivers[i]; const vo_info_t *info = video_driver->info;