mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-16 22:00:55 +00:00
Revert "Remove decoding thread like in Java common"
This reverts commit 50733f6d7a.
This commit is contained in:
@@ -134,7 +134,7 @@ static void reassembleFrame(int frameNumber) {
|
||||
}
|
||||
}
|
||||
|
||||
int LiGetNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
int getNextDecodeUnit(PDECODE_UNIT *du) {
|
||||
int err = LbqWaitForQueueElement(&decodeUnitQueue, (void**)du);
|
||||
if (err == LBQ_SUCCESS) {
|
||||
return 1;
|
||||
@@ -144,17 +144,6 @@ int LiGetNextDecodeUnit(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