mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
player: propagate updated duration to media_info
https://bugzilla.gnome.org/show_bug.cgi?id=786201
This commit is contained in:
parent
15f24fef53
commit
98b0802a98
1 changed files with 5 additions and 0 deletions
|
@ -1507,6 +1507,11 @@ emit_duration_changed (GstPlayer * self, GstClockTime duration)
|
|||
GST_TIME_ARGS (duration));
|
||||
|
||||
self->cached_duration = duration;
|
||||
g_mutex_lock (&self->lock);
|
||||
if (self->media_info) {
|
||||
self->media_info->duration = duration;
|
||||
}
|
||||
g_mutex_unlock (&self->lock);
|
||||
|
||||
if (g_signal_handler_find (self, G_SIGNAL_MATCH_ID,
|
||||
signals[SIGNAL_DURATION_CHANGED], 0, NULL, NULL, NULL) != 0) {
|
||||
|
|
Loading…
Reference in a new issue