Permalink
Browse files

Adding comment placeholders for underflow/overflow logging

  • Loading branch information...
1 parent def387f commit 7bc44089aa7274847310f06d257a20168f788856 Andy Lucas committed Oct 23, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 module_avb_audio/src/media_fifos/media_output_fifo.c
@@ -107,7 +107,10 @@ media_output_fifo_pull_sample(media_output_fifo_t s0,
unsigned int *dptr = s->dptr;
if (dptr == s->wrptr)
+ {
+ // Underflow
return 0;
+ }
sample = *dptr;
if (dptr == s->marker && s->local_ts == 0) {
@@ -221,7 +224,10 @@ media_output_fifo_strided_push(media_output_fifo_t s0,
if (new_wrptr != s->dptr) {
*wrptr = sample;
wrptr = new_wrptr;
- }
+ }
+ else {
+ // Overflow
+ }
}
s->wrptr = wrptr;

0 comments on commit 7bc4408

Please sign in to comment.