mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
discoverer: Set 'processing = FALSE' when done discovering SYNC
This avoids a race where we would get new tag but we are already prerolled and analyzing results. It is the way it is supposed to be handled as stated in comment: "If preroll is complete, drop these tags - the collected information is possibly already being processed and adding more tags would be racy"
This commit is contained in:
parent
568ef481c5
commit
dcf8c3e8b0
1 changed files with 5 additions and 0 deletions
|
@ -1462,6 +1462,11 @@ handle_current_sync (GstDiscoverer * dc)
|
|||
dc->priv->current_info->result = GST_DISCOVERER_TIMEOUT;
|
||||
}
|
||||
|
||||
DISCO_LOCK (dc);
|
||||
dc->priv->processing = FALSE;
|
||||
DISCO_UNLOCK (dc);
|
||||
|
||||
|
||||
GST_DEBUG ("Done");
|
||||
|
||||
g_timer_stop (timer);
|
||||
|
|
Loading…
Reference in a new issue