mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Debugging
This commit is contained in:
parent
be055bfd8b
commit
aaee014955
@ -1952,6 +1952,11 @@ public final class ChatMessageInteractiveMediaNode: ASDisplayNode, GalleryItemTr
|
|||||||
videoNode.isUserInteractionEnabled = false
|
videoNode.isUserInteractionEnabled = false
|
||||||
var firstTime = true
|
var firstTime = true
|
||||||
videoNode.ownsContentNodeUpdated = { [weak self] owns in
|
videoNode.ownsContentNodeUpdated = { [weak self] owns in
|
||||||
|
/*#if DEBUG
|
||||||
|
// Debug memory leak
|
||||||
|
let _ = videoNode.videoQualityState()
|
||||||
|
#endif*/
|
||||||
|
|
||||||
if let strongSelf = self, let videoNode = strongSelf.videoNode {
|
if let strongSelf = self, let videoNode = strongSelf.videoNode {
|
||||||
if firstTime {
|
if firstTime {
|
||||||
firstTime = false
|
firstTime = false
|
||||||
|
@ -278,7 +278,7 @@ private enum PlayerImpl {
|
|||||||
public extension ChunkMediaPlayerV2.MediaDataReaderParams {
|
public extension ChunkMediaPlayerV2.MediaDataReaderParams {
|
||||||
init(context: AccountContext) {
|
init(context: AccountContext) {
|
||||||
var useV2Reader = true
|
var useV2Reader = true
|
||||||
if let data = context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_v2_reader"] as? Double {
|
if let data = context.currentAppConfiguration.with({ $0 }).data, let value = data["ios_video_v2_reader2"] as? Double {
|
||||||
useV2Reader = value != 0.0
|
useV2Reader = value != 0.0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user