mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 06:11:03 +00:00
Add missing callbacks to Stop and Release for A/V
This commit is contained in:
@@ -35,6 +35,8 @@ void initializeVideoStream(IP_ADDRESS host, PSTREAM_CONFIGURATION streamConfig,
|
||||
void destroyVideoStream(void) {
|
||||
PLINKED_BLOCKING_QUEUE_ENTRY entry, nextEntry;
|
||||
|
||||
callbacks.release();
|
||||
|
||||
destroyVideoDepacketizer();
|
||||
|
||||
entry = LbqDestroyLinkedBlockingQueue(&packetQueue);
|
||||
@@ -167,6 +169,8 @@ int readFirstFrame(void) {
|
||||
}
|
||||
|
||||
void stopVideoStream(void) {
|
||||
callbacks.stop();
|
||||
|
||||
PltInterruptThread(&udpPingThread);
|
||||
PltInterruptThread(&receiveThread);
|
||||
PltInterruptThread(&depacketizerThread);
|
||||
|
||||
Reference in New Issue
Block a user