Mercurial > mplayer.hg
comparison mencoder.c @ 4767:8d4208df7c15
Options registration for mencoder
author | albeu |
---|---|
date | Wed, 20 Feb 2002 17:02:31 +0000 |
parents | 4b794a67e9ca |
children | fdb92826250c |
comparison
equal
deleted
inserted
replaced
4766:2bf9749cb7c2 | 4767:8d4208df7c15 |
---|---|
339 memcpy(sh_audio->a_buffer,&sh_audio->a_buffer[len],sh_audio->a_buffer_len); | 339 memcpy(sh_audio->a_buffer,&sh_audio->a_buffer[len],sh_audio->a_buffer_len); |
340 } | 340 } |
341 return size; | 341 return size; |
342 } | 342 } |
343 | 343 |
344 extern void me_register_options(m_config_t* cfg); | |
345 | |
344 //--------------------------------------------------------------------------- | 346 //--------------------------------------------------------------------------- |
345 | 347 |
346 static int eof=0; | 348 static int eof=0; |
347 static int interrupted=0; | 349 static int interrupted=0; |
348 | 350 |
441 } | 443 } |
442 | 444 |
443 playtree = play_tree_new(); | 445 playtree = play_tree_new(); |
444 mconfig = m_config_new(playtree); | 446 mconfig = m_config_new(playtree); |
445 m_config_register_options(mconfig,mencoder_opts); | 447 m_config_register_options(mconfig,mencoder_opts); |
446 // TODO : add something to let modules register their options | 448 me_register_options(mconfig); |
447 parse_cfgfiles(mconfig); | 449 parse_cfgfiles(mconfig); |
448 | 450 |
449 if(m_config_parse_command_line(mconfig, argc, argv, envp) < 0) mencoder_exit(1, "error parsing cmdline"); | 451 if(m_config_parse_command_line(mconfig, argc, argv, envp) < 0) mencoder_exit(1, "error parsing cmdline"); |
450 playtree = play_tree_cleanup(playtree); | 452 playtree = play_tree_cleanup(playtree); |
451 if(playtree) { | 453 if(playtree) { |