mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
omx: fix two serious message handling bugs
Waiting for the next message if we already got one is nonsense and can lead to lockups. https://bugzilla.gnome.org/show_bug.cgi?id=725468
This commit is contained in:
parent
4e4f093319
commit
8b06b07f6f
1 changed files with 2 additions and 4 deletions
|
@ -842,8 +842,7 @@ gst_omx_component_get_state (GstOMXComponent * comp, GstClockTime timeout)
|
|||
g_mutex_unlock (&comp->lock);
|
||||
if (!g_queue_is_empty (&comp->messages)) {
|
||||
signalled = TRUE;
|
||||
}
|
||||
if (timeout == GST_CLOCK_TIME_NONE) {
|
||||
} else if (timeout == GST_CLOCK_TIME_NONE) {
|
||||
g_cond_wait (&comp->messages_cond, &comp->messages_lock);
|
||||
signalled = TRUE;
|
||||
} else {
|
||||
|
@ -1514,8 +1513,7 @@ gst_omx_port_set_flushing (GstOMXPort * port, GstClockTime timeout,
|
|||
|
||||
if (!g_queue_is_empty (&comp->messages)) {
|
||||
signalled = TRUE;
|
||||
}
|
||||
if (timeout == GST_CLOCK_TIME_NONE) {
|
||||
} else if (timeout == GST_CLOCK_TIME_NONE) {
|
||||
g_cond_wait (&comp->messages_cond, &comp->messages_lock);
|
||||
signalled = TRUE;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue