[vlc-commits] chromecast: Use the string version of the state in logs

Hugo Beauzée-Luyssen git at videolan.org
Wed Jan 17 10:08:30 CET 2018


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan  9 16:19:51 2018 +0100| [5aca0e2ec5f2393b7f74d5f74c1b096ee0b2479b] | committer: Hugo Beauzée-Luyssen

chromecast: Use the string version of the state in logs

(cherry picked from commit eccaf6367c2565ecfb5df6cdefca05dad72cf9f1)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5aca0e2ec5f2393b7f74d5f74c1b096ee0b2479b
---

 modules/stream_out/chromecast/chromecast_ctrl.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 5079e1fc59..311259bd26 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -381,7 +381,8 @@ void intf_sys_t::processReceiverMessage( const castchannel::CastMessage& msg )
                 break;
             // else: fall through and warn
         default:
-            msg_Warn( m_module, "Unexpected RECEIVER_STATUS with state %d", m_state );
+            msg_Warn( m_module, "Unexpected RECEIVER_STATUS with state %s",
+                      StateToStr( m_state ) );
             break;
         }
     }



More information about the vlc-commits mailing list