Just a tiny patch to getxawvalue() in utils/ivtv-tune/ivtv-tune.c .
It emits a clearer message when parsing ~/.xawtv files, and one the
assumptions is not met.

Patch is against r3928.

Sorry for the inconvenience, but if you have any questions, please CC
me.  I'm not subscribed.

-- 
...Adam Di Carlo...<[EMAIL PROTECTED]>.......<URL:http://www.onshored.com/>
Index: utils/ivtv-tune/ivtv-tune.c
===================================================================
--- utils/ivtv-tune/ivtv-tune.c	(revision 3928)
+++ utils/ivtv-tune/ivtv-tune.c	(working copy)
@@ -201,6 +201,10 @@
 	channel = cfg_get_str(xawchannel, "channel");
 	if (channel) {
 		freqtable = cfg_get_str("global", "freqtab");
+		if (freqtable == NULL) {
+		    printf("No global frequency table (freqtab) defined in ~/.xawtv\n");
+		    exit(1);
+		}
 		return getfreqvalue(freqtable, channel);
 	}
 
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to