videolevels: Don't lock base transform to avoid lockup
Maybe lock is already established in BaseTransform now?
This commit is contained in:
parent
c705237e2e
commit
bd993e5e06
@ -546,9 +546,6 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
|||||||
|
|
||||||
GST_DEBUG_OBJECT (videolevels, "Performing non-inplace transform");
|
GST_DEBUG_OBJECT (videolevels, "Performing non-inplace transform");
|
||||||
|
|
||||||
/* We need to lock our videolevels params to prevent segfaults */
|
|
||||||
GST_BASE_TRANSFORM_LOCK (videolevels);
|
|
||||||
|
|
||||||
input = GST_BUFFER_DATA (inbuf);
|
input = GST_BUFFER_DATA (inbuf);
|
||||||
output = GST_BUFFER_DATA (outbuf);
|
output = GST_BUFFER_DATA (outbuf);
|
||||||
|
|
||||||
@ -571,8 +568,6 @@ gst_videolevels_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
|||||||
|
|
||||||
ret = gst_videolevels_do_levels (videolevels, input, output);
|
ret = gst_videolevels_do_levels (videolevels, input, output);
|
||||||
|
|
||||||
GST_BASE_TRANSFORM_UNLOCK (videolevels);
|
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return GST_FLOW_OK;
|
return GST_FLOW_OK;
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user