mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Remove decoding thread like in Java common
This commit is contained in:
@@ -134,7 +134,7 @@ static void reassembleFrame(int frameNumber) {
|
||||
}
|
||||
}
|
||||
|
||||
int getNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
int LiGetNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
int err = LbqWaitForQueueElement(&decodeUnitQueue, (void**)du);
|
||||
if (err == LBQ_SUCCESS) {
|
||||
return 1;
|
||||
@@ -144,6 +144,17 @@ int getNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
}
|
||||
}
|
||||
|
||||
int LiPollNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
int err = LbqPollQueueElement(&decodeUnitQueue, (void**) du);
|
||||
if (err == LBQ_SUCCESS) {
|
||||
return 1;
|
||||
}
|
||||
else {
|
||||
LC_ASSERT(err == LBQ_EMPTY);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void freeDecodeUnit(PDECODE_UNIT decodeUnit) {
|
||||
PLENTRY lastEntry;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user