Mercurial > mplayer.hg
comparison command.c @ 22287:53f0cbf238cf
fix compilation with gcc 2.95.3
author | ivo |
---|---|
date | Wed, 21 Feb 2007 19:48:12 +0000 |
parents | a5e5b0c45c03 |
children |
comparison
equal
deleted
inserted
replaced
22286:a7e5b99ac083 | 22287:53f0cbf238cf |
---|---|
1626 break; | 1626 break; |
1627 | 1627 |
1628 case MP_CMD_GET_PROPERTY:{ | 1628 case MP_CMD_GET_PROPERTY:{ |
1629 m_option_t *prop; | 1629 m_option_t *prop; |
1630 void *val; | 1630 void *val; |
1631 char *tmp; | |
1631 prop = mp_property_find(cmd->args[0].v.s); | 1632 prop = mp_property_find(cmd->args[0].v.s); |
1632 if (!prop) { | 1633 if (!prop) { |
1633 mp_msg(MSGT_CPLAYER, MSGL_WARN, | 1634 mp_msg(MSGT_CPLAYER, MSGL_WARN, |
1634 "Unknown property: '%s'\n", cmd->args[0].v.s); | 1635 "Unknown property: '%s'\n", cmd->args[0].v.s); |
1635 break; | 1636 break; |
1640 mp_msg(MSGT_CPLAYER, MSGL_WARN, | 1641 mp_msg(MSGT_CPLAYER, MSGL_WARN, |
1641 "Failed to get value of property '%s'.\n", | 1642 "Failed to get value of property '%s'.\n", |
1642 cmd->args[0].v.s); | 1643 cmd->args[0].v.s); |
1643 break; | 1644 break; |
1644 } | 1645 } |
1645 char *tmp = m_option_print(prop, val); | 1646 tmp = m_option_print(prop, val); |
1646 if (!tmp || tmp == (char *) -1) { | 1647 if (!tmp || tmp == (char *) -1) { |
1647 mp_msg(MSGT_CPLAYER, MSGL_WARN, | 1648 mp_msg(MSGT_CPLAYER, MSGL_WARN, |
1648 "Failed to print value of property '%s'.\n", | 1649 "Failed to print value of property '%s'.\n", |
1649 cmd->args[0].v.s); | 1650 cmd->args[0].v.s); |
1650 break; | 1651 break; |