fix: improve VLC engine detection and null safety - #749
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kt286 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @kt286. Thanks for your PR. I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Reviewer's GuideThis PR centralizes VLC engine detection through the DynamicLibraries singleton and makes the VLC player more robust by adding null-pointer guards around m_qvplayer usage, while ensuring the playback engine type is correctly set to VLC on successful dynamic library initialization. Sequence diagram for playback engine initialization via DynamicLibrariessequenceDiagram
participant DmGlobal
participant DynamicLibraries
DmGlobal->>DmGlobal: initPlaybackEngineType()
DmGlobal->>DynamicLibraries: instance()
activate DynamicLibraries
DynamicLibraries->>DynamicLibraries: DynamicLibraries()
alt [dynamic libraries load failed]
DynamicLibraries->>DmGlobal: setPlaybackEngineType(0)
else [dynamic libraries load succeed]
DynamicLibraries->>DmGlobal: setPlaybackEngineType(1)
end
deactivate DynamicLibraries
DmGlobal->>DmGlobal: engineType used in logging
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
a552419 to
6bf406a
Compare
|
TAG Bot New tag: 7.0.63 |
|
TAG Bot New tag: 7.0.64 |
6bf406a to
202471e
Compare
|
TAG Bot New tag: 7.0.65 |
|
TAG Bot New tag: 7.0.66 |
- Add null pointer safety guards for m_qvplayer in all VLC player methods - Replace inline VLC library detection with DynamicLibraries singleton - Set playback engine type to VLC when dynamic libraries load successfully fix: 优化VLC引擎检测和空值安全 - 在所有VLC播放器方法中为m_qvplayer添加空指针安全保护 - 使用DynamicLibraries单例替换内联VLC库检测 - 当动态库加载成功时设置播放引擎类型为VLC
202471e to
8b40338
Compare
fix: 优化VLC引擎检测和空值安全
Summary by Sourcery
Improve VLC playback initialization and resilience when the VLC player or libraries are unavailable.
Bug Fixes:
Enhancements: