mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
omx: Take lock on EOS to update the flow return value
Fixes "GThread-ERROR **: file gthread-posix.c: line 171 (g_mutex_free_posix_impl): error 'Device or resource busy' during 'pthread_mutex_destroy ((pthread_mutex_t *) mutex)'" in _finalize.
This commit is contained in:
parent
cd76c268fc
commit
f3f9330332
3 changed files with 6 additions and 0 deletions
|
@ -514,6 +514,8 @@ eos:
|
|||
flow_ret = GST_FLOW_EOS;
|
||||
}
|
||||
g_mutex_unlock (&self->drain_lock);
|
||||
|
||||
GST_AUDIO_ENCODER_STREAM_LOCK (self);
|
||||
self->downstream_flow_ret = flow_ret;
|
||||
|
||||
/* Here we fallback and pause the task for the EOS case */
|
||||
|
|
|
@ -2156,6 +2156,8 @@ eos:
|
|||
flow_ret = GST_FLOW_EOS;
|
||||
}
|
||||
g_mutex_unlock (&self->drain_lock);
|
||||
|
||||
GST_VIDEO_DECODER_STREAM_LOCK (self);
|
||||
self->downstream_flow_ret = flow_ret;
|
||||
|
||||
/* Here we fallback and pause the task for the EOS case */
|
||||
|
|
|
@ -908,6 +908,8 @@ eos:
|
|||
flow_ret = GST_FLOW_EOS;
|
||||
}
|
||||
g_mutex_unlock (&self->drain_lock);
|
||||
|
||||
GST_VIDEO_ENCODER_STREAM_LOCK (self);
|
||||
self->downstream_flow_ret = flow_ret;
|
||||
|
||||
/* Here we fallback and pause the task for the EOS case */
|
||||
|
|
Loading…
Reference in a new issue