aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtimeconf.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2003-10-25 20:30:41 +0000
committervektor <devnull@localhost>2003-10-25 20:30:41 +0000
commit8d3cdc5d43f6f36af56cff632ecdd1f862e03459 (patch)
tree4f5da6728e0ada735effdd04414d700d43d01204 /src/tvtimeconf.c
parent699744acffe2a2dc299b0fbea78279472f91ef08 (diff)
25 Oct 2003 Billy Biggs <vektor@dumbterm.net>
* tvtime/src/tvtimeconf.h: Add an (undocumented for now) MPEG input command line switch. * tvtime/src/tvtimeconf.c: Implementation.
Diffstat (limited to 'src/tvtimeconf.c')
-rw-r--r--src/tvtimeconf.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/tvtimeconf.c b/src/tvtimeconf.c
index 8da1d0b..4757f21 100644
--- a/src/tvtimeconf.c
+++ b/src/tvtimeconf.c
@@ -102,6 +102,7 @@ struct config_s
uid_t uid;
char *rvr_filename;
+ char *mpeg_filename;
char *mixerdev;
@@ -141,6 +142,7 @@ static void copy_config( config_t *dest, config_t *src )
dest->v4ldev = 0;
dest->vbidev = 0;
dest->rvr_filename = 0;
+ dest->mpeg_filename = 0;
dest->mixerdev = 0;
dest->config_filename = 0;
dest->modelist = 0;
@@ -820,6 +822,7 @@ config_t *config_new( void )
ct->uid = getuid();
ct->rvr_filename = 0;
+ ct->mpeg_filename = 0;
ct->mixerdev = strdup( "/dev/mixer:line" );
ct->deinterlace_method = strdup( "GreedyH" );
@@ -989,6 +992,7 @@ int config_parse_tvtime_command_line( config_t *ct, int argc, char **argv )
{ "slave", 0, 0, 'k' },
{ "widescreen", 0, 0, 'a' },
{ "rvr", 1, 0, 'r' },
+ { "mpeg", 1, 0, 'g' },
{ "fspos", 1, 0, 'p' },
{ "xmltv", 1, 0, 't' },
{ "display", 1, 0, 'X' },
@@ -1000,7 +1004,7 @@ int config_parse_tvtime_command_line( config_t *ct, int argc, char **argv )
char c;
if( argc ) {
- while( (c = getopt_long( argc, argv, "ahkmMsSvF:r:H:I:d:b:i:c:n:D:f:x:p:X:t:Q",
+ while( (c = getopt_long( argc, argv, "ahkmMsSvF:r:H:I:d:b:i:c:n:D:f:x:p:X:t:Qg:",
long_options, &option_index )) != -1 ) {
switch( c ) {
case 'a': ct->aspect = 1; break;
@@ -1024,6 +1028,8 @@ int config_parse_tvtime_command_line( config_t *ct, int argc, char **argv )
break;
case 'r': if( ct->rvr_filename ) { free( ct->rvr_filename ); }
ct->rvr_filename = strdup( optarg ); break;
+ case 'g': if( ct->mpeg_filename ) { free( ct->mpeg_filename ); }
+ ct->mpeg_filename = strdup( optarg ); break;
case 'x': if( ct->mixerdev ) { free( ct->mixerdev ); }
ct->mixerdev = strdup( optarg ); break;
case 'X': setenv( "DISPLAY", optarg, 1 ); break;
@@ -1347,6 +1353,7 @@ void config_free_data( config_t *ct )
if( ct->timeformat ) free( ct->timeformat );
if( ct->output_driver ) free( ct->output_driver );
if( ct->rvr_filename ) free( ct->rvr_filename );
+ if( ct->mpeg_filename ) free( ct->mpeg_filename );
if( ct->mixerdev ) free( ct->mixerdev );
if( ct->vbidev ) free( ct->vbidev );
if( ct->config_filename ) free( ct->config_filename );
@@ -1701,6 +1708,11 @@ const char *config_get_rvr_filename( config_t *ct )
return ct->rvr_filename;
}
+const char *config_get_mpeg_filename( config_t *ct )
+{
+ return ct->mpeg_filename;
+}
+
int config_get_framerate_mode( config_t *ct )
{
return ct->framerate;

Privacy Policy