浏览代码

Remove debug message

Konstantin Seiler 5 年之前
父节点
当前提交
8756341201
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0 10
      playback/src/player.rs

+ 0 - 10
playback/src/player.rs

@@ -668,7 +668,6 @@ impl Future for PlayerInternal {
     type Error = ();
 
     fn poll(&mut self) -> Poll<(), ()> {
-        let mut last_printed_stream_position_for_debug = 0;
         loop {
             let mut all_futures_completed_or_not_ready = true;
 
@@ -761,15 +760,6 @@ impl Future for PlayerInternal {
                             *stream_position_pcm + (packet.data().len() / 2) as u64;
                         let stream_position_millis = Self::position_pcm_to_ms(*stream_position_pcm);
 
-                        if stream_position_millis / 1000 != last_printed_stream_position_for_debug {
-                            trace!(
-                                "Stream position: {} ({} seconds)",
-                                *stream_position_pcm,
-                                stream_position_millis / 1000
-                            );
-                            last_printed_stream_position_for_debug = stream_position_millis / 1000;
-                        }
-
                         let notify_about_position = match *reported_nominal_start_time {
                             None => true,
                             Some(reported_nominal_start_time) => {