From: Lars Op den Kamp Date: Sun, 7 Oct 2012 09:29:35 +0000 (+0200) Subject: fixed return values of cec_get_adapter_vendor_id() and cec_get_adapter_product_id() X-Git-Tag: upstream/2.2.0~1^2~17^2^2~21 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=47b76f72a063b26b253d50b54165672e4b79d703;p=deb_libcec.git fixed return values of cec_get_adapter_vendor_id() and cec_get_adapter_product_id() --- diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index 6d9d8c5..153668d 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -380,12 +380,12 @@ void cec_init_video_standalone(void) uint16_t cec_get_adapter_vendor_id(void) { - return cec_parser ? cec_parser->GetAdapterVendorId() : NULL; + return cec_parser ? cec_parser->GetAdapterVendorId() : 0; } uint16_t cec_get_adapter_product_id(void) { - return cec_parser ? cec_parser->GetAdapterProductId() : NULL; + return cec_parser ? cec_parser->GetAdapterProductId() : 0; } //@}