aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-11-16 05:09:37 (GMT)
committervektor <devnull@localhost>2005-11-16 05:09:37 (GMT)
commitbb5b8d1559acc1165d2872ce2cd266d91fc24877 (patch)
tree57eb7b0359d9c051a62983969e050101c09d322e
parent34ff704b361494bdea0636fdb93487cd087812b1 (diff)
* tvtime/src/tvtime.c: Print a helpful error message if tvtime was
miscompiled without X support.
-rw-r--r--src/tvtime.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tvtime.c b/src/tvtime.c
index c5749ef..ef9a687 100644
--- a/src/tvtime.c
+++ b/src/tvtime.c
@@ -1242,9 +1242,14 @@ int tvtime_main( rtctimer_t *rtctimer, int read_stdin, int realtime,
sixteennine = config_get_aspect( ct );
- if( !output || !output->init( config_get_geometry( ct ),
- sixteennine, config_get_square_pixels( ct ),
- verbose ) ) {
+ if (!output) {
+ fprintf (stderr, "%s: Broken tvtime install, "
+ "not compiled with X support?\n", argv[ 0 ]);
+ return 1;
+ }
+
+ if( !output->init( config_get_geometry( ct ), sixteennine,
+ config_get_square_pixels( ct ), verbose ) ) {
/* Error messages are driver specific. */
return 1;
}

Privacy Policy