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

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 16 17:19:17 CET 2018


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

chromecast: Use the string version of the state in logs

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

 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