diff options
Diffstat (limited to 'audio/decode/ad_mpg123.c')
-rw-r--r-- | audio/decode/ad_mpg123.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/decode/ad_mpg123.c b/audio/decode/ad_mpg123.c index dc3ec69531..30a4790746 100644 --- a/audio/decode/ad_mpg123.c +++ b/audio/decode/ad_mpg123.c @@ -218,7 +218,9 @@ static int decode_packet(struct dec_audio *da) mp_audio_set_null_data(&da->decoded); - struct demux_packet *pkt = demux_read_packet(da->header); + struct demux_packet *pkt; + if (demux_read_packet_async(da->header, &pkt) == 0) + return AD_WAIT; if (!pkt) return AD_EOF; |