Skip to content

Commit ca1fa24

Browse files
committed
fix native pip close on macos15
1 parent 330adee commit ca1fa24

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Volumes/awsm/build/pip2_1c380a6ce00c5dc9227d11ef2896c191

pip/window.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#import "H264Decoder.h"
1414
#import "HLSPlayer.h"
1515
#import <AVFoundation/AVFoundation.h>
16+
#import <CoreImage/CoreImage.h>
1617
#ifndef NO_AIRPLAY
1718
#import "airplaySender.h"
1819
#include "../airplay_sender/http_client.h"
@@ -1297,6 +1298,7 @@ - (void)stopPip:(bool) force{
12971298
pvc = nil;
12981299
[self setContentViewController:nil];
12991300
[self setContentViewController:nvc];
1301+
if(shouldClose || CGSizeEqualToSize(CGSizeZero, rect.size)) return;
13001302
[self setAspectRatio:rect.size];
13011303
[self setFrame:rect display:YES];
13021304
[self setIsVisible:true];

0 commit comments

Comments
 (0)