Mercurial > mplayer.hg
comparison m_option.h @ 32428:92b92a78ca2a
Make the parse_timestring public, with a slightly extended API.
As a consequence, "2 hours" is no longer recognized as a valid timestamp
meaning "2 seconds".
author | cigaes |
---|---|
date | Mon, 18 Oct 2010 20:56:52 +0000 |
parents | e8b0797970b6 |
children | 08a90b0e44e1 |
comparison
equal
deleted
inserted
replaced
32427:58232aeb3fdd | 32428:92b92a78ca2a |
---|---|
526 opt->type->free(dst); | 526 opt->type->free(dst); |
527 } | 527 } |
528 | 528 |
529 /*@}*/ | 529 /*@}*/ |
530 | 530 |
531 /** | |
532 * Parse a string as a timestamp. | |
533 * | |
534 * @param[in] str the string to parse. | |
535 * @param[out] time parsed time. | |
536 * @param[in] endchar return an error of the next character after the | |
537 * timestamp is neither nul nor endchar. | |
538 * @return Number of chars in the timestamp. | |
539 */ | |
540 int parse_timestring(const char *str, double *time, char endchar); | |
541 | |
531 #endif /* MPLAYER_M_OPTION_H */ | 542 #endif /* MPLAYER_M_OPTION_H */ |