deb_libcec.git
12 years agocec: fixed - use the correct source device for broadcasts
Lars Op den Kamp [Fri, 28 Oct 2011 22:45:35 +0000 (00:45 +0200)] 
cec: fixed - use the correct source device for broadcasts

12 years agocec: wait a bit longer to clear previous input
Lars Op den Kamp [Fri, 28 Oct 2011 22:00:54 +0000 (00:00 +0200)] 
cec: wait a bit longer to clear previous input

12 years agocec: fixed - correct source for broadcast messages
Lars Op den Kamp [Fri, 28 Oct 2011 09:37:06 +0000 (11:37 +0200)] 
cec: fixed - correct source for broadcast messages

12 years agowin32: sync visual studio project files
Lars Op den Kamp [Fri, 28 Oct 2011 09:32:01 +0000 (11:32 +0200)] 
win32: sync visual studio project files

12 years agocec: moved device specific logic from CCECProcessor to CCECBusDevice
Lars Op den Kamp [Fri, 28 Oct 2011 09:16:57 +0000 (11:16 +0200)] 
cec: moved device specific logic from CCECProcessor to CCECBusDevice

12 years agocec: moved CECBusDevice.cpp to devices/CECBusDevice.cpp
Lars Op den Kamp [Fri, 28 Oct 2011 07:59:20 +0000 (09:59 +0200)] 
cec: moved CECBusDevice.cpp to devices/CECBusDevice.cpp

12 years agocec: set the physical address in CCECBusDevice
Lars Op den Kamp [Fri, 28 Oct 2011 07:53:46 +0000 (09:53 +0200)] 
cec: set the physical address in CCECBusDevice

12 years agocec: add -la and --logical-address to the command line params
Lars Op den Kamp [Fri, 28 Oct 2011 00:05:39 +0000 (02:05 +0200)] 
cec: add -la and --logical-address to the command line params

12 years agocec: added -d and --log-level params to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 23:41:30 +0000 (01:41 +0200)] 
cec: added -d and --log-level params to cec-client

12 years agocec: cleaned up command line param parsing
Lars Op den Kamp [Thu, 27 Oct 2011 23:34:31 +0000 (01:34 +0200)] 
cec: cleaned up command line param parsing

12 years agocec: added -sf and --short-log-file, which only log the actual messages, not the...
Lars Op den Kamp [Thu, 27 Oct 2011 23:16:46 +0000 (01:16 +0200)] 
cec: added -sf and --short-log-file, which only log the actual messages, not the level and timestamp

12 years agocec: added -f and --log-file parameters to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 22:58:29 +0000 (00:58 +0200)] 
cec: added -f and --log-file parameters to cec-client

12 years agocec: added option to change the log level to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 22:15:40 +0000 (00:15 +0200)] 
cec: added option to change the log level to cec-client

12 years agocec: make CEC_LOG levels powers of 2
Lars Op den Kamp [Thu, 27 Oct 2011 22:04:30 +0000 (00:04 +0200)] 
cec: make CEC_LOG levels powers of 2

12 years agocec: introduced CEC_LOG_TRAFFIC log level and log all traffic in that level
Lars Op den Kamp [Thu, 27 Oct 2011 22:00:39 +0000 (00:00 +0200)] 
cec: introduced CEC_LOG_TRAFFIC log level and log all traffic in that level

12 years agocec: fixed - c+p'd copyright contained #pragma once
Lars Op den Kamp [Thu, 27 Oct 2011 18:11:26 +0000 (20:11 +0200)] 
cec: fixed - c+p'd copyright contained #pragma once

12 years agocec: fixed vendorid. it should be uint64_t after all :)
Lars Op den Kamp [Thu, 27 Oct 2011 18:10:52 +0000 (20:10 +0200)] 
cec: fixed vendorid. it should be uint64_t after all :)

12 years agowin32: sync visual studio project file. use uint32_t instead of uint64_t for the...
Lars Op den Kamp [Thu, 27 Oct 2011 17:51:57 +0000 (19:51 +0200)] 
win32: sync visual studio project file. use uint32_t instead of uint64_t for the vendor id

12 years agocec: poll for a vendor id when an active device is detected on a logical addres,...
Lars Op den Kamp [Wed, 26 Oct 2011 23:32:31 +0000 (01:32 +0200)] 
cec: poll for a vendor id when an active device is detected on a logical addres, the vendor id is unknown  and it's been inactive for 5 seconds.

12 years agocec: moved CEC handlers to implementations/
Lars Op den Kamp [Wed, 26 Oct 2011 23:10:01 +0000 (01:10 +0200)] 
cec: moved CEC handlers to implementations/

12 years agocec: fixed crash on exit after the last commit.
Lars Op den Kamp [Wed, 26 Oct 2011 23:02:38 +0000 (01:02 +0200)] 
cec: fixed crash on exit after the last commit.

12 years agocec: refactor CEC command handling. split up standard and non-standard CEC implementa...
Lars Op den Kamp [Wed, 26 Oct 2011 22:59:40 +0000 (00:59 +0200)] 
cec: refactor CEC command handling. split up standard and non-standard CEC implementations.

12 years agocec: also parse the vendor id if it's sent to the broadcast address
Lars Op den Kamp [Wed, 26 Oct 2011 19:48:10 +0000 (21:48 +0200)] 
cec: also parse the vendor id if it's sent to the broadcast address

12 years agocec: handle samsung remote command 'return'
Lars Op den Kamp [Tue, 25 Oct 2011 23:26:52 +0000 (01:26 +0200)] 
cec: handle samsung remote command 'return'

12 years agocec: fixed - log the parameter too when there's only 1
Lars Op den Kamp [Tue, 25 Oct 2011 23:14:24 +0000 (01:14 +0200)] 
cec: fixed - log the parameter too when there's only 1

12 years agocec: fixed - break break break
Lars Op den Kamp [Tue, 25 Oct 2011 23:04:37 +0000 (01:04 +0200)] 
cec: fixed - break break break

12 years agocec: changed log format of transmitted commands
Lars Op den Kamp [Tue, 25 Oct 2011 22:59:59 +0000 (00:59 +0200)] 
cec: changed log format of transmitted commands

12 years agocec: added hooks for vendor specific cec handling for LG and Samsung
Lars Op den Kamp [Tue, 25 Oct 2011 22:59:09 +0000 (00:59 +0200)] 
cec: added hooks for vendor specific cec handling for LG and Samsung

12 years agocec: added vendor id detection for LG. changed vendorid display to hex
Lars Op den Kamp [Tue, 25 Oct 2011 22:35:06 +0000 (00:35 +0200)] 
cec: added vendor id detection for LG. changed vendorid display to hex

12 years agocec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitori...
Lars Op den Kamp [Tue, 25 Oct 2011 22:19:09 +0000 (00:19 +0200)] 
cec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitoring is enabled, the device will only log the data it received, but will not respond to any message

12 years agocec: changed format of the log message with the frames that were received
Lars Op den Kamp [Tue, 25 Oct 2011 19:35:03 +0000 (21:35 +0200)] 
cec: changed format of the log message with the frames that were received

12 years agocec: store the vendor ID when it's sent via CEC_OPCODE_DEVICE_VENDOR_ID. don't respon...
Lars Op den Kamp [Tue, 25 Oct 2011 17:47:00 +0000 (19:47 +0200)] 
cec: store the vendor ID when it's sent via CEC_OPCODE_DEVICE_VENDOR_ID. don't respond to CEC_OPCODE_VENDOR_COMMAND_WITH_ID with an abort command

12 years agoadded changelog for v0.7
Lars Op den Kamp [Fri, 14 Oct 2011 15:34:41 +0000 (17:34 +0200)] 
added changelog for v0.7

12 years agocec: send a keypress with 0 duration when a key is pressed and with a duration set...
Lars Op den Kamp [Fri, 14 Oct 2011 14:17:08 +0000 (16:17 +0200)] 
cec: send a keypress with 0 duration when a key is pressed and with a duration set when it's released

12 years agocec: add SetOSDString() to the interface (not supported by all tvs)
Lars Op den Kamp [Fri, 14 Oct 2011 13:59:27 +0000 (15:59 +0200)] 
cec: add SetOSDString() to the interface (not supported by all tvs)

12 years agocec: fixed - 'routing change' is a broadcast message. log routing changes, but don...
Lars Op den Kamp [Fri, 14 Oct 2011 10:52:30 +0000 (12:52 +0200)] 
cec: fixed - 'routing change' is a broadcast message. log routing changes, but don't send a 'set active view' message, so the active input won't be changed

12 years agocec: log keypresses in the debug log
Lars Op den Kamp [Fri, 14 Oct 2011 10:22:15 +0000 (12:22 +0200)] 
cec: log keypresses in the debug log

12 years agocec: added 'pa' command to cec-client, to change the physical address
Lars Op den Kamp [Fri, 14 Oct 2011 09:15:10 +0000 (11:15 +0200)] 
cec: added 'pa' command to cec-client, to change the physical address

12 years agocec: add SetPhysicalAddress()/cec_set_physical_address() to the interface, so the...
Lars Op den Kamp [Fri, 14 Oct 2011 09:06:24 +0000 (11:06 +0200)] 
cec: add SetPhysicalAddress()/cec_set_physical_address() to the interface, so the HDMI port number to use can be changed

12 years agocec: put the message processing code from WaitForAck() in ParseMessage(). fixes missi...
Lars Op den Kamp [Fri, 14 Oct 2011 08:51:29 +0000 (10:51 +0200)] 
cec: put the message processing code from WaitForAck() in ParseMessage(). fixes missing incoming message logging of non-data messages when not waiting for an ACK

12 years agocec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before...
Lars Op den Kamp [Fri, 14 Oct 2011 08:21:17 +0000 (10:21 +0200)] 
cec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before returning

12 years agocec: set initiator and destination first in cec_command::push_back(). fixes 'tx'...
Lars Op den Kamp [Fri, 14 Oct 2011 08:13:10 +0000 (10:13 +0200)] 
cec: set initiator and destination first in cec_command::push_back(). fixes 'tx' command in cec-client

12 years agocec: keep trying to connect while iTimeout isn't reached (default 10 seconds). fixes...
Lars Op den Kamp [Fri, 14 Oct 2011 00:23:11 +0000 (02:23 +0200)] 
cec: keep trying to connect while iTimeout isn't reached (default 10 seconds). fixes exit with a 'permission denied' error when the device isn't ready yet. remove CEC_SETTLE_DOWN_TIME

12 years agocec: don't call SetActiveView() when reporting the power status. fixes loop which...
Lars Op den Kamp [Fri, 14 Oct 2011 00:10:39 +0000 (02:10 +0200)] 
cec: don't call SetActiveView() when reporting the power status. fixes loop which causes some TVs to report failed connections

12 years agocec: eom was not being parsed when receiving MSGCODE_FRAME_DATA. fixed. thanks again...
Lars Op den Kamp [Thu, 13 Oct 2011 23:59:46 +0000 (01:59 +0200)] 
cec: eom was not being parsed when receiving MSGCODE_FRAME_DATA. fixed. thanks again bob :-)

12 years agocec: add the device type as parameter when sending the physical address. thanks bobo1on1
Lars Op den Kamp [Thu, 13 Oct 2011 23:38:29 +0000 (01:38 +0200)] 
cec: add the device type as parameter when sending the physical address. thanks bobo1on1

12 years agocec: fixed typo in libcec.pc.in
Lars Op den Kamp [Thu, 13 Oct 2011 22:57:24 +0000 (00:57 +0200)] 
cec: fixed typo in libcec.pc.in

12 years agocec: add optional strLib parameter to LoadLibCec(), so the location of the shared...
Lars Op den Kamp [Thu, 13 Oct 2011 22:09:37 +0000 (00:09 +0200)] 
cec: add optional strLib parameter to LoadLibCec(), so the location of the shared library can be specified

12 years agowin32: also sync release target of the visual studio project file
Lars Op den Kamp [Thu, 13 Oct 2011 21:24:00 +0000 (23:24 +0200)] 
win32: also sync release target of the visual studio project file

12 years agocec: only link cec-client against ld. use AC_SEARCH_LIBS instead of AC_CHECK_LIB
Lars Op den Kamp [Thu, 13 Oct 2011 21:11:33 +0000 (23:11 +0200)] 
cec: only link cec-client against ld. use AC_SEARCH_LIBS instead of AC_CHECK_LIB

12 years agocec: use int instead of bool on the public C interface and remove stdbool.h include
Lars Op den Kamp [Thu, 13 Oct 2011 18:25:50 +0000 (20:25 +0200)] 
cec: use int instead of bool on the public C interface and remove stdbool.h include

12 years agowin32: sync visual studio project files. fixed: accidently included windows.h within...
Lars Op den Kamp [Thu, 13 Oct 2011 17:52:34 +0000 (19:52 +0200)] 
win32: sync visual studio project files. fixed: accidently included windows.h within a namespace tag; don't include stdbool.h on windows

12 years agofixed darwin lib name
davilla [Thu, 13 Oct 2011 06:39:48 +0000 (02:39 -0400)] 
fixed darwin lib name

12 years agorenamed: CECExports.h => cec.h, CECExportsC.h => cecc.h, CECLoader.h => cecloader...
Lars Op den Kamp [Wed, 12 Oct 2011 22:27:38 +0000 (00:27 +0200)] 
renamed: CECExports.h => cec.h, CECExportsC.h => cecc.h, CECLoader.h => cecloader.h, CECTypes.h => cectypes.h

12 years agoupdated debian package. split up libcec and libcec-dev
Lars Op den Kamp [Wed, 12 Oct 2011 21:07:16 +0000 (23:07 +0200)] 
updated debian package. split up libcec and libcec-dev

12 years agocec: changed to use dlopen instead of static linkage. shuffled headers a bit. bumped...
Lars Op den Kamp [Wed, 12 Oct 2011 19:10:17 +0000 (21:10 +0200)] 
cec: changed to use dlopen instead of static linkage. shuffled headers a bit. bumped interface to version 7

12 years agoremoved 'rt' from libraries. it's not needed (anymore)
Lars Op den Kamp [Tue, 11 Oct 2011 23:08:29 +0000 (01:08 +0200)] 
removed 'rt' from libraries. it's not needed (anymore)

12 years agocec: reset the active view after a routing change. issue #1
Lars Op den Kamp [Tue, 11 Oct 2011 23:02:37 +0000 (01:02 +0200)] 
cec: reset the active view after a routing change. issue #1

12 years agoCEC_SETTLE_DOWN_TIME 1000->1500. fixes 'permission denied' when accessing the adapter...
Lars Op den Kamp [Tue, 11 Oct 2011 22:46:45 +0000 (00:46 +0200)] 
CEC_SETTLE_DOWN_TIME 1000->1500. fixes 'permission denied' when accessing the adapter right after inserting it

12 years agofixed: changed attached license to be GPLv2 instead of GPLv3 this was an error as...
Martin Ellis [Tue, 11 Oct 2011 20:03:37 +0000 (22:03 +0200)] 
fixed: changed attached license to be GPLv2 instead of GPLv3 this was an error as libCEC is licensed GPLv2 not GPLv3 thanks @garbear

12 years agoAdded contributors link
Martin Ellis [Tue, 11 Oct 2011 11:25:43 +0000 (13:25 +0200)] 
Added contributors link

12 years agocec: added installer for windows. requires Visual Studio / Visual C++ 2010, NSIS...
Lars Op den Kamp [Sun, 9 Oct 2011 17:06:37 +0000 (19:06 +0200)] 
cec: added installer for windows. requires Visual Studio / Visual C++ 2010, NSIS and WinDDK.

12 years agoupdated changelog for release v0.6. updated lib version numbers
Lars Op den Kamp [Sun, 9 Oct 2011 13:15:42 +0000 (15:15 +0200)] 
updated changelog for release v0.6. updated lib version numbers

12 years agocec: sync visual studio project files. removed pthreadVC2d.dll / .lib (we're not...
Lars Op den Kamp [Sun, 9 Oct 2011 12:36:27 +0000 (14:36 +0200)] 
cec: sync visual studio project files. removed pthreadVC2d.dll / .lib (we're not going to debug pthread). don't return a struct but set the values in a struct passed as a param in cec_command::format().

12 years agocec: more cleanups. split up cec_adapter_message and cec_command. use cec_command...
Lars Op den Kamp [Sun, 9 Oct 2011 10:55:37 +0000 (12:55 +0200)] 
cec: more cleanups. split up cec_adapter_message and cec_command. use cec_command over the interface. bump interface version to 6

12 years agocec: moved some logic to the cec_packet struct. fix package output
Lars Op den Kamp [Sun, 9 Oct 2011 09:42:14 +0000 (11:42 +0200)] 
cec: moved some logic to the cec_packet struct. fix package output

12 years agocec: split up buffer and comm mutex again in CAdapterCommunication
Lars Op den Kamp [Sun, 9 Oct 2011 08:47:45 +0000 (10:47 +0200)] 
cec: split up buffer and comm mutex again in CAdapterCommunication

12 years agoenable darwin support
davilla [Sun, 9 Oct 2011 02:31:09 +0000 (22:31 -0400)] 
enable darwin support

12 years agoadd darwin support
davilla [Sun, 9 Oct 2011 02:30:29 +0000 (22:30 -0400)] 
add darwin support

12 years agofixed, classes with virtual methods must have a virtual destructor
davilla [Sun, 9 Oct 2011 02:27:11 +0000 (22:27 -0400)] 
fixed, classes with virtual methods must have a virtual destructor

12 years agoRevert "cec: fix timeout"
Lars Op den Kamp [Sat, 8 Oct 2011 18:29:36 +0000 (20:29 +0200)] 
Revert "cec: fix timeout"

This reverts commit 48787f390d45671622aa74a05a9235a08577345d.

12 years agocec: fix timeout
Lars Op den Kamp [Sat, 8 Oct 2011 18:22:59 +0000 (20:22 +0200)] 
cec: fix timeout

12 years agocec: only report the menu state when the parameter is CEC_MENU_REQUEST_TYPE_QUERY
Lars Op den Kamp [Sat, 8 Oct 2011 16:43:02 +0000 (18:43 +0200)] 
cec: only report the menu state when the parameter is CEC_MENU_REQUEST_TYPE_QUERY

12 years agocec: fix wait for ack
Lars Op den Kamp [Sat, 8 Oct 2011 16:30:12 +0000 (18:30 +0200)] 
cec: fix wait for ack

12 years agocec: send abort message when receiving opcode deck status
Lars Op den Kamp [Sat, 8 Oct 2011 15:44:34 +0000 (17:44 +0200)] 
cec: send abort message when receiving opcode deck status

12 years agocec: log message cosmetics
Lars Op den Kamp [Sat, 8 Oct 2011 15:39:14 +0000 (17:39 +0200)] 
cec: log message cosmetics

12 years agocec: parse and store the vendor id and device class of devices. only the vendor ID...
Lars Op den Kamp [Sat, 8 Oct 2011 15:36:04 +0000 (17:36 +0200)] 
cec: parse and store the vendor id and device class of devices. only the vendor ID of Samsung (240) is currently detected.

12 years agocec: fix possible deadlock when starting a new thread
Lars Op den Kamp [Sat, 8 Oct 2011 15:34:23 +0000 (17:34 +0200)] 
cec: fix possible deadlock when starting a new thread

12 years agocec: retransmit if needed. wait long enough for an ack message
Lars Op den Kamp [Sat, 8 Oct 2011 10:36:05 +0000 (12:36 +0200)] 
cec: retransmit if needed. wait long enough for an ack message

12 years agocec: add 'on' and 'standby' command to the test client
Lars Op den Kamp [Sat, 8 Oct 2011 10:16:06 +0000 (12:16 +0200)] 
cec: add 'on' and 'standby' command to the test client

12 years agocec: show the opcode as hex instead of decimal in the log when storing a command...
Lars Op den Kamp [Sat, 8 Oct 2011 09:52:27 +0000 (11:52 +0200)] 
cec: show the opcode as hex instead of decimal in the log when storing a command in the buffer

12 years agocec: fix GetTimeMs() on linux. add time in ms since startup to log messages
Lars Op den Kamp [Sat, 8 Oct 2011 09:29:52 +0000 (11:29 +0200)] 
cec: fix GetTimeMs() on linux. add time in ms since startup to log messages

12 years agocec: don't stop waiting for MSGCODE_COMMAND_ACCEPTED when another command was received
Lars Op den Kamp [Sat, 8 Oct 2011 08:53:07 +0000 (10:53 +0200)] 
cec: don't stop waiting for MSGCODE_COMMAND_ACCEPTED when another command was received

12 years agofixed changelog version number
Lars Op den Kamp [Sat, 8 Oct 2011 01:25:37 +0000 (03:25 +0200)] 
fixed changelog version number

12 years agocec: shorter lock times. copy currentframe while locked before processing it
Lars Op den Kamp [Sat, 8 Oct 2011 01:17:16 +0000 (03:17 +0200)] 
cec: shorter lock times. copy currentframe while locked before processing it

12 years agocec: clear the input buffer when parsing
Lars Op den Kamp [Sat, 8 Oct 2011 00:54:11 +0000 (02:54 +0200)] 
cec: clear the input buffer when parsing

12 years agocec: send opcode_image_view_on instead of text_view_on
Lars Op den Kamp [Sat, 8 Oct 2011 00:25:55 +0000 (02:25 +0200)] 
cec: send opcode_image_view_on instead of text_view_on

12 years agocec: removed dupe m_bRunning properties. wait until a thread is started before return...
Lars Op den Kamp [Fri, 7 Oct 2011 23:39:35 +0000 (01:39 +0200)] 
cec: removed dupe m_bRunning properties. wait until a thread is started before returning from CreateThread(). shorter read times, so the comm mutex doesn't stay locked too long.

12 years agolibcec v0.5 (WIP)
Lars Op den Kamp [Fri, 7 Oct 2011 21:05:40 +0000 (23:05 +0200)] 
libcec v0.5 (WIP)
  * bumped interface version to 5
  * don't pass std::string and std::vector accross the interface
  * fixed heap corruption crashes on windows
  * fixed some memory leaks
  * reset all structs to default values before doing with them

12 years agochangelog updated for release v0.4.3
Lars Op den Kamp [Wed, 5 Oct 2011 22:19:51 +0000 (00:19 +0200)] 
changelog updated for release v0.4.3

12 years agowin32: updated visual studio project files
Lars Op den Kamp [Wed, 5 Oct 2011 22:12:53 +0000 (00:12 +0200)] 
win32: updated visual studio project files

12 years agowin32: fix uint8_t -> uint16_t argument
Lars Op den Kamp [Wed, 5 Oct 2011 21:52:05 +0000 (23:52 +0200)] 
win32: fix uint8_t -> uint16_t argument

12 years agocec: fix reconnect
Lars Op den Kamp [Wed, 5 Oct 2011 21:14:12 +0000 (23:14 +0200)] 
cec: fix reconnect

12 years agocec: fix some threading related bugs, like trying to join with a detached thread...
Lars Op den Kamp [Wed, 5 Oct 2011 21:13:48 +0000 (23:13 +0200)] 
cec: fix some threading related bugs, like trying to join with a detached thread. give each thread it's own condition. fixes deadlock on exit

12 years agocec: forgot the physical address when doing the int parameters, resulting in a wronly...
Lars Op den Kamp [Tue, 4 Oct 2011 22:12:37 +0000 (00:12 +0200)] 
cec: forgot the physical address when doing the int parameters, resulting in a wronly reported physical address

12 years agoupdated changelog for v0.4.1
Lars Op den Kamp [Tue, 4 Oct 2011 21:48:10 +0000 (23:48 +0200)] 
updated changelog for v0.4.1

12 years agocec: fix the last commit on linux
Lars Op den Kamp [Tue, 4 Oct 2011 21:39:37 +0000 (23:39 +0200)] 
cec: fix the last commit on linux

12 years agocec: fixed int parameter sizes and some signed/unsigned warnings. will need to be...
Lars Op den Kamp [Tue, 4 Oct 2011 21:19:09 +0000 (23:19 +0200)] 
cec: fixed int parameter sizes and some signed/unsigned warnings. will need to be synced with linux

12 years agowin32: sync visual studio project files. increased warning level to 4. added Release...
Lars Op den Kamp [Tue, 4 Oct 2011 21:16:59 +0000 (23:16 +0200)] 
win32: sync visual studio project files. increased warning level to 4. added Release target

12 years agocec: check whether m_port isn't NULL in ReadFromDevice
Lars Op den Kamp [Tue, 4 Oct 2011 18:59:47 +0000 (20:59 +0200)] 
cec: check whether m_port isn't NULL in ReadFromDevice