Skip to content

Commit 579d126

Browse files
Merge pull request #27 from pollen-robotics/26-keyed_mutex-is-null
bug #26: remove unecessary cleanup. fix crash because of nullptr
2 parents 761f78b + a4fdaf2 commit 579d126

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Plugin/src/GstAVPipeline.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,17 +563,13 @@ void GstAVPipeline::DestroyPipeline()
563563
{
564564
gst_clear_sample(&_leftData->last_sample);
565565
gst_clear_caps(&_leftData->last_caps);
566-
gst_clear_buffer(&_leftData->shared_buffer);
567566
gst_clear_object(&_leftData->conv);
568-
_leftData->keyed_mutex = nullptr;
569567
}
570568
if (_rightData != nullptr)
571569
{
572570
gst_clear_sample(&_rightData->last_sample);
573571
gst_clear_caps(&_rightData->last_caps);
574-
gst_clear_buffer(&_rightData->shared_buffer);
575572
gst_clear_object(&_rightData->conv);
576-
_rightData->keyed_mutex = nullptr;
577573
}
578574

579575
//pDebug->ReportLiveDeviceObjects(D3D11_RLDO_DETAIL | D3D11_RLDO_IGNORE_INTERNAL);
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:704f9ac33cae4bcf5a8f354a9e81ed4437d60904352b37d67feb1ad00f638ac5
3-
size 53248
2+
oid sha256:220bc6d1497c37d41078afb61abbfc7ab87858ac603254b9247566834f71e9d0
3+
size 243

0 commit comments

Comments
 (0)