diff options
Diffstat (limited to 'audio/decode/ad_spdif.c')
-rw-r--r-- | audio/decode/ad_spdif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c index c215f92e63..528e42fbc4 100644 --- a/audio/decode/ad_spdif.c +++ b/audio/decode/ad_spdif.c @@ -191,7 +191,10 @@ static int decode_packet(struct dec_audio *da) spdif_ctx->out_buffer_len = 0; - struct demux_packet *mpkt = demux_read_packet(da->header); + struct demux_packet *mpkt; + if (demux_read_packet_async(da->header, &mpkt) == 0) + return AD_WAIT; + if (!mpkt) return AD_EOF; |