[MPlayer-dev-eng] m_option_t ???
Alexander Roalter
alex at roalter.it
Tue Jun 29 22:07:39 CEST 2010
I was trying to fix the calling parameters in order to allow for
bd://<track> -dvd-device <mountpath>
as well as
bd://<track>@<mountpath>
but I fail to understand how this is supposed to work:
specifying
struct stream_priv_s = { int title; char *device; } priv_defaults { 0,
NULL };
static const m_option_t stream_opts_fields[] = {
{"title", ST_OFF(title), CONF_TYPE_INT, M_OPT_RANGE, 0, 99999, NULL},
{"mountpath", ST_OFF(device), CONF_TYPE_STRING, 0, 0, 0, NULL},
{NULL, NULL, 0, 0,0, 0, NULL}
static const struct m_struct_st stream_opts = {
"bd", sizeof(struct stream_priv_s), &priv_defaults, stream_opts_fields};
and finally
const stream_info_t stream_info_bd { "Blu-ray", "bd", "crt...", "",
bd_stream_open, { "bd", NULL }, &stream_opts, 0}
should do the trick...
But when starting either mplayer bd://3/mnt/bd
or mplayer bd://3
or mplayer bd://3@/mnt/bd
I never get the opts filled to something else than the priv_defaults...
how come? and what do I do wrong?
--
Cheers,
Alex
More information about the MPlayer-dev-eng
mailing list