[vlc-commits] chromecast: Don't spam the logs

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


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

chromecast: Don't spam the logs

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

 modules/stream_out/chromecast/chromecast.h        | 2 ++
 modules/stream_out/chromecast/chromecast_ctrl.cpp | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/stream_out/chromecast/chromecast.h b/modules/stream_out/chromecast/chromecast.h
index 0e493a9c16..a930fdc6ee 100644
--- a/modules/stream_out/chromecast/chromecast.h
+++ b/modules/stream_out/chromecast/chromecast.h
@@ -61,6 +61,8 @@ static const std::string NAMESPACE_RECEIVER         = "urn:x-cast:com.google.cas
 
 #define PACKET_MAX_LEN 10 * 1024
 
+//#define CHROMECAST_VERBOSE
+
 // Media player Chromecast app id
 #define APP_ID "CC1AD845" // Default media player aka DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
 
diff --git a/modules/stream_out/chromecast/chromecast_ctrl.cpp b/modules/stream_out/chromecast/chromecast_ctrl.cpp
index 4531a72032..5079e1fc59 100644
--- a/modules/stream_out/chromecast/chromecast_ctrl.cpp
+++ b/modules/stream_out/chromecast/chromecast_ctrl.cpp
@@ -711,6 +711,7 @@ mtime_t intf_sys_t::getPlaybackTimestamp() const
     {
     case Playing:
         return ( mdate() - m_time_playback_started ) + m_ts_local_start;
+#ifdef CHROMECAST_VERBOSE
     case Ready:
         msg_Dbg(m_module, "receiver idle using buffering time %" PRId64, m_ts_local_start);
         break;
@@ -720,6 +721,7 @@ mtime_t intf_sys_t::getPlaybackTimestamp() const
     case Paused:
         msg_Dbg(m_module, "receiver paused using buffering time %" PRId64, m_ts_local_start);
         break;
+#endif
     default:
         break;
     }



More information about the vlc-commits mailing list