mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 07:46:38 +00:00
basesrc: Hold object lock while updating latency
Otherwise in gst_base_src_query_latency(), it ended up sometimes thinking it wasn't -1 when it was actually.
This commit is contained in:
parent
3a23b518d4
commit
67a496c0c2
1 changed files with 2 additions and 0 deletions
|
@ -3664,7 +3664,9 @@ gst_base_src_set_playing (GstBaseSrc * basesrc, gboolean live_play)
|
|||
bclass->unlock_stop (basesrc);
|
||||
|
||||
/* for live sources we restart the timestamp correction */
|
||||
GST_OBJECT_LOCK (basesrc);
|
||||
basesrc->priv->latency = -1;
|
||||
GST_OBJECT_UNLOCK (basesrc);
|
||||
/* have to restart the task in case it stopped because of the unlock when
|
||||
* we went to PAUSED. Only do this if we operating in push mode. */
|
||||
GST_OBJECT_LOCK (basesrc->srcpad);
|
||||
|
|
Loading…
Reference in a new issue