aboutsummaryrefslogtreecommitdiffstats
path: root/src/tvtime.c
diff options
context:
space:
mode:
authorvektor <devnull@localhost>2005-09-08 03:20:05 (GMT)
committervektor <devnull@localhost>2005-09-08 03:20:05 (GMT)
commit9a885a902fae6b5647ef55928bc9bab1bbf2dcab (patch)
treec1b755791ab2ca7baafbbbf88d611ea5c1e08975 /src/tvtime.c
parentfec5e06b0a97d4aec8331dd6eba87964d36a40ad (diff)
* tvtime/src/videoinput.h: Add an error_string field to the constructor.
* tvtime/src/videoinput.c: Provide a detailed error message when the capture card can't be opened. * tvtime/src/tvtime.c: Improve error reporting in the UI. * tvtime/src/tvtime-scanner.c: Support the new videoinput API.
Diffstat (limited to 'src/tvtime.c')
-rw-r--r--src/tvtime.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tvtime.c b/src/tvtime.c
index 2c70041..c5749ef 100644
--- a/src/tvtime.c
+++ b/src/tvtime.c
@@ -1193,7 +1193,7 @@ int tvtime_main( rtctimer_t *rtctimer, int read_stdin, int realtime,
int kbd_pos = 0;
int kbd_available;
char *error_string = 0;
- char *error_string2 = 0;
+ char error_string2[4096];
double pixel_aspect;
char number[ 6 ];
tvtime_t *tvtime;
@@ -1321,16 +1321,13 @@ int tvtime_main( rtctimer_t *rtctimer, int read_stdin, int realtime,
vidin = videoinput_new( config_get_v4l_device( ct ),
config_get_inputwidth( ct ),
config_get_audio_boost( ct ),
- norm, verbose );
+ norm, verbose, error_string2 );
if( !vidin ) {
if( asprintf( &error_string,
_("Cannot open capture device %s."),
config_get_v4l_device( ct ) ) < 0 ) {
error_string = 0;
}
- if( asprintf( &error_string2, "%s", strerror( errno ) ) < 0 ) {
- error_string2 = 0;
- }
} else if( videoinput_get_numframes( vidin ) < 2 ) {
lfprintf( stderr, _("\n"
" Your capture card driver, %s, does not seem\n"

Privacy Policy