mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
Update current position/duration when gst_rtsp_media_get_range_string is called
This commit is contained in:
parent
d423c25a3f
commit
5e642c7ef1
1 changed files with 4 additions and 0 deletions
|
@ -1186,6 +1186,10 @@ gst_rtsp_media_get_range_string (GstRTSPMedia * media, gboolean play,
|
|||
goto not_prepared;
|
||||
|
||||
g_mutex_lock (&priv->lock);
|
||||
|
||||
/* Update the range value with current position/duration */
|
||||
collect_media_stats (media);
|
||||
|
||||
/* make copy */
|
||||
range = priv->range;
|
||||
|
||||
|
|
Loading…
Reference in a new issue