[vlc-devel] [PATCH] aout: audio filters can return NULL
Thomas Guillem
thomas at gllm.fr
Tue Feb 19 17:07:46 CET 2019
Don't count them as lost.
---
src/audio_output/dec.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index d343cbc745..08666b7c61 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -367,7 +367,7 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)
block = aout_FiltersPlay(owner->filters, block, owner->sync.rate);
if (block == NULL)
- goto lost;
+ return ret;
/* Software volume */
aout_volume_Amplify (owner->volume, block);
@@ -384,7 +384,6 @@ int aout_DecPlay(audio_output_t *aout, block_t *block)
drop:
owner->sync.discontinuity = true;
block_Release (block);
-lost:
atomic_fetch_add_explicit(&owner->buffers_lost, 1, memory_order_relaxed);
return ret;
}
--
2.20.1
More information about the vlc-devel
mailing list