mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
basecamerabinsrc: don't use private GMutex implementation details
Don't use private GMutex implementation details to check whether it has been freed already or not. Just clear mutex and GCond unconditionally in free function, they are always inited anyway, and the free function can't be called multiple times either.
This commit is contained in:
parent
e9141b718b
commit
34c9c86ab7
1 changed files with 3 additions and 8 deletions
|
@ -231,14 +231,9 @@ gst_camerabin_destroy_preview_pipeline (GstCameraBinPreviewPipelineData *
|
|||
{
|
||||
g_return_if_fail (preview != NULL);
|
||||
|
||||
if (preview->processing_lock.p) {
|
||||
g_mutex_clear (&preview->processing_lock);
|
||||
preview->processing_lock.p = NULL;
|
||||
}
|
||||
if (preview->processing_cond.p) {
|
||||
g_cond_clear (&preview->processing_cond);
|
||||
preview->processing_cond.p = NULL;
|
||||
}
|
||||
g_mutex_clear (&preview->processing_lock);
|
||||
g_cond_clear (&preview->processing_cond);
|
||||
|
||||
if (preview->pipeline) {
|
||||
gst_element_set_state (preview->pipeline, GST_STATE_NULL);
|
||||
gst_object_unref (preview->pipeline);
|
||||
|
|
Loading…
Reference in a new issue