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

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


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

chromecast: Don't spam the logs

(cherry picked from commit 8efab516f8a1a35c97250fe5da22c602a39064a6)
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=8691de02a62fcb8ea4c15e8442fcd8ec491956c4
---

 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