Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
65204f61 by Steve Lhomme at 2026-01-10T14:42:17+01:00
mft: don't end a stream that was not started
It may happen when destroying an MFT that failed to initialize.
We know when we are started or not, so we can make use of that.
We keep the assert in startStream() as we don't want to start streaming twice.
- - - - -
1 changed file:
- modules/codec/mft.cpp
Changes:
=====================================
modules/codec/mft.cpp
=====================================
@@ -182,7 +182,8 @@ public:
/// Used for Async MFTs
HRESULT endStream()
{
- assert(streamStarted);
+ if(!streamStarted)
+ return S_OK;
HRESULT hr = mft->ProcessMessage(MFT_MESSAGE_NOTIFY_END_OF_STREAM,
(ULONG_PTR)0);
if (SUCCEEDED(hr))
streamStarted = false;
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/65204f610173c216984d07dee18a6a18f8216d61
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/65204f610173c216984d07dee18a6a18f8216d61
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits