# HG changeset patch # User reimar # Date 1345488899 0 # Node ID df3b195a810df70204c6acb440cbd211efc13581 # Parent 4d94558867d6da6b0bac810116e6af117b77da73 Fix detection of -vo pgm/md5 even when suboptions are used. diff -r 4d94558867d6 -r df3b195a810d libvo/video_out.c --- 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;