mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
validate: Do not check pulling thread when thread is paused
With decodebin3 we have cases where a task has been started in the `typefind` element but the demuxer is the one pulling (from its own thread) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/183>
This commit is contained in:
parent
75d30ae2d3
commit
640469ce0c
1 changed files with 1 additions and 1 deletions
|
@ -2488,7 +2488,7 @@ gst_validate_pad_monitor_get_range_func (GstPad * pad, GstObject * parent,
|
|||
if (peer) {
|
||||
GST_OBJECT_LOCK (peer);
|
||||
task = GST_PAD_TASK (peer);
|
||||
if (task) {
|
||||
if (task && GST_TASK_STATE (task) == GST_TASK_STARTED) {
|
||||
GST_OBJECT_LOCK (task);
|
||||
/* Only doing pointer comparison, no need to hold a ref */
|
||||
thread = task->thread;
|
||||
|
|
Loading…
Reference in a new issue