[MPlayer-cvslog] r19386 - trunk/mplayer.c
ivo
subversion at mplayerhq.hu
Sun Aug 13 18:45:20 CEST 2006
Author: ivo
Date: Sun Aug 13 18:45:20 2006
New Revision: 19386
Modified:
trunk/mplayer.c
Log:
fix segfault if an unknown property is requested
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Sun Aug 13 18:45:20 2006
@@ -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) {
More information about the MPlayer-cvslog
mailing list