chiark / gitweb /
missing samples_written assign
[disorder] / clients / playrtp.c
index e259b2c49e51a834df15f3713323bd40e9011a7f..4531ae4da9cf56f27c0fd21ca4517c86e0f41d5d 100644 (file)
@@ -416,8 +416,10 @@ static void play_rtp(void) {
             if(frames_written != -EAGAIN)
               fatal(0, "error calling snd_pcm_writei: %ld",
                     (long)frames_written);
-          } else
+          } else {
+            samples_written = frames_written * 2;
             next_timestamp += samples_written;
+          }
         }
       }
       active = 0;