Update current position/duration when gst_rtsp_media_get_range_string is called

This commit is contained in:
Youness Alaoui 2013-06-11 19:09:42 -04:00 committed by Wim Taymans
parent d423c25a3f
commit 5e642c7ef1

View file

@ -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;