Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding comment placeholders for underflow/overflow logging

  • Loading branch information...
commit 7bc44089aa7274847310f06d257a20168f788856 1 parent def387f
@ajwlucas authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 module_avb_audio/src/media_fifos/media_output_fifo.c
View
8 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;
Please sign in to comment.
Something went wrong with that request. Please try again.