# HG changeset patch # User ivo # Date 1155487520 0 # Node ID 64f9a6ce71e1678a35e2caa3e6edf34985e6341b # Parent 66e7e52a995e35c4b5c10b6ee02c8a5876ff0203 fix segfault if an unknown property is requested diff -r 66e7e52a995e -r 64f9a6ce71e1 mplayer.c --- a/mplayer.c Sun Aug 13 15:14:17 2006 +0000 +++ b/mplayer.c Sun Aug 13 16:45:20 2006 +0000 @@ -4374,7 +4374,10 @@ m_option_t* prop; void* val; prop = mp_property_find(cmd->args[0].v.s); - if(!prop) mp_msg(MSGT_CPLAYER,MSGL_WARN,"Unkown property: '%s'\n",cmd->args[0].v.s); + if(!prop) { + mp_msg(MSGT_CPLAYER,MSGL_WARN,"Unkown property: '%s'\n",cmd->args[0].v.s); + break; + } /* Use m_option_print directly to get easily parseable values. */ val = calloc(1,prop->type->size); if(m_property_do(prop,M_PROPERTY_GET,val) <= 0) {