VLCRendererDiscoverer: Track discovered renderer items
Creating a new instance of `VLCRendererItem` each time we got an event from libvlc led to duplication and issues with item deletions. Thus, this patch checks before creating a new instance, if a `VLCRendererItem` exist with a `libvlc_renderer_item_t *`.
Showing
- Headers/Internal/VLCLibVLCBridging.h 22 additions, 0 deletionsHeaders/Internal/VLCLibVLCBridging.h
- Headers/Internal/VLCRendererItem+Init.h 0 additions, 46 deletionsHeaders/Internal/VLCRendererItem+Init.h
- Headers/Public/VLCRendererDiscoverer.h 25 additions, 9 deletionsHeaders/Public/VLCRendererDiscoverer.h
- Headers/Public/VLCRendererItem.h 7 additions, 3 deletionsHeaders/Public/VLCRendererItem.h
- MobileVLCKit.xcodeproj/project.pbxproj 0 additions, 2 deletionsMobileVLCKit.xcodeproj/project.pbxproj
- Sources/VLCMediaPlayer.m 1 addition, 2 deletionsSources/VLCMediaPlayer.m
- Sources/VLCRendererDiscoverer.m 41 additions, 9 deletionsSources/VLCRendererDiscoverer.m
- Sources/VLCRendererItem.m 4 additions, 4 deletionsSources/VLCRendererItem.m
Loading
Please register or sign in to comment