This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: cec-follower: fix incorrect initiator for two messages
Author:  Hans Verkuil <hans.verk...@cisco.com>
Date:    Thu Feb 16 11:10:42 2017 +0100

The cec-follower utility replied with an incorrect initiator (0xf) to
the CEC_MSG_REQUEST_CURRENT_LATENCY and CEC_MSG_CDC_MESSAGE messages.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>

 utils/cec-follower/cec-processing.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=66bc9f8df5feb83e77f56308826c84063dff954d
diff --git a/utils/cec-follower/cec-processing.cpp 
b/utils/cec-follower/cec-processing.cpp
index b8f9b046e322..8e771f70e1a5 100644
--- a/utils/cec-follower/cec-processing.cpp
+++ b/utils/cec-follower/cec-processing.cpp
@@ -719,7 +719,7 @@ static void processMsg(struct node *node, struct cec_msg 
&msg, unsigned me)
 
                cec_ops_request_current_latency(&msg, &phys_addr);
                if (phys_addr == node->phys_addr) {
-                       cec_msg_set_reply_to(&msg, &msg);
+                       cec_msg_init(&msg, me, from);
                        cec_msg_report_current_latency(&msg, phys_addr,
                                                       
node->state.video_latency,
                                                       
node->state.low_latency_mode,
@@ -960,7 +960,7 @@ static void processMsg(struct node *node, struct cec_msg 
&msg, unsigned me)
                case CEC_MSG_CDC_HEC_DISCOVER:
                        __u16 phys_addr;
 
-                       cec_msg_set_reply_to(&msg, &msg);
+                       cec_msg_init(&msg, me, CEC_LOG_ADDR_BROADCAST);
                        cec_ops_cdc_hec_discover(&msg, &phys_addr);
                        cec_msg_cdc_hec_report_state(&msg, phys_addr,
                                                     
CEC_OP_HEC_FUNC_STATE_NOT_SUPPORTED,

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to