|
@@ -152,9 +152,9 @@ static int get_opus_packet(void) {
|
|
|
if (status) OG(&go, stream_pagein, &u->state, &u->page);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
if (status > 0) packet = status;
|
|
|
- else if (stream.state > DISCONNECT) packet = 0;
|
|
|
+ else if (stream.state > DISCONNECT || _buf_used(streambuf)) packet = 0;
|
|
|
|
|
|
UNLOCK_S;
|
|
|
return packet;
|