From 0443edc6e98fe8765dfbaa6db9e0f5e8bc1f7622 Mon Sep 17 00:00:00 2001 From: peetonn Date: Wed, 18 Nov 2015 18:52:13 +0900 Subject: [PATCH] fixed crash when adding local stream (video or audio) --- NdnCon copy-Info.plist | 4 ++-- ndncon/NCStreamsWindowController.mm | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NdnCon copy-Info.plist b/NdnCon copy-Info.plist index 26f15b4..87683f8 100755 --- a/NdnCon copy-Info.plist +++ b/NdnCon copy-Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.7.2 + 0.7.3 CFBundleSignature ???? CFBundleVersion - 32 + 33 LSApplicationCategoryType public.app-category.video LSMinimumSystemVersion diff --git a/ndncon/NCStreamsWindowController.mm b/ndncon/NCStreamsWindowController.mm index f80bb5b..74f3681 100644 --- a/ndncon/NCStreamsWindowController.mm +++ b/ndncon/NCStreamsWindowController.mm @@ -608,7 +608,9 @@ -(void)setNoPublishingViewVisible:(BOOL)isVisible } else { - [self.localStreamViewer.stackView removeView:self.noPublishingView]; + // check if it's there + if ([self.localStreamViewer.stackView.views containsObject:self.noPublishingView]) + [self.localStreamViewer.stackView removeView:self.noPublishingView]; } }