mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
fix vorbis and ogg ending early - release
This commit is contained in:
@@ -7,8 +7,6 @@
|
|||||||
#define DMAP_STRINGIFY_(x) #x
|
#define DMAP_STRINGIFY_(x) #x
|
||||||
#define DMAP_STRINGIFY(x) DMAP_STRINGIFY_(x)
|
#define DMAP_STRINGIFY(x) DMAP_STRINGIFY_(x)
|
||||||
|
|
||||||
#define DMAP_FULL 1
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
DMAP_UNKNOWN,
|
DMAP_UNKNOWN,
|
||||||
DMAP_UINT,
|
DMAP_UINT,
|
||||||
|
|||||||
@@ -152,9 +152,9 @@ static int get_opus_packet(void) {
|
|||||||
if (status) OG(&go, stream_pagein, &u->state, &u->page);
|
if (status) OG(&go, stream_pagein, &u->state, &u->page);
|
||||||
}
|
}
|
||||||
|
|
||||||
// only return a negative value when end of streaming is reached
|
// only return a negative value when true end of streaming is reached
|
||||||
if (status > 0) packet = status;
|
if (status > 0) packet = status;
|
||||||
else if (stream.state > DISCONNECT) packet = 0;
|
else if (stream.state > DISCONNECT || _buf_used(streambuf)) packet = 0;
|
||||||
|
|
||||||
UNLOCK_S;
|
UNLOCK_S;
|
||||||
return packet;
|
return packet;
|
||||||
|
|||||||
@@ -152,9 +152,9 @@ static int get_ogg_packet(void) {
|
|||||||
if (status) OG(&go, stream_pagein, &v->state, &v->page);
|
if (status) OG(&go, stream_pagein, &v->state, &v->page);
|
||||||
}
|
}
|
||||||
|
|
||||||
// only return a negative value when end of streaming is reached
|
// only return a negative value when true end of streaming is reached
|
||||||
if (status > 0) packet = status;
|
if (status > 0) packet = status;
|
||||||
else if (stream.state > DISCONNECT) packet = 0;
|
else if (stream.state > DISCONNECT || _buf_used(streambuf)) packet = 0;
|
||||||
|
|
||||||
UNLOCK_S;
|
UNLOCK_S;
|
||||||
return packet;
|
return packet;
|
||||||
|
|||||||
Reference in New Issue
Block a user