mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 853325 - Improve buffered time ranges accuracy with the GStreamer media backend r=doublec
This commit is contained in:
parent
5fe6a21e21
commit
435a7a47c4
@ -711,12 +711,15 @@ int64_t GStreamerReader::QueryDuration()
|
||||
}
|
||||
}
|
||||
|
||||
/*if (mDecoder->mDuration != -1 &&
|
||||
mDecoder->mDuration > duration) {
|
||||
// We decoded more than the reported duration (which could be estimated)
|
||||
LOG(PR_LOG_DEBUG, ("mDuration > duration"));
|
||||
duration = mDecoder->mDuration;
|
||||
}*/
|
||||
{
|
||||
ReentrantMonitorAutoEnter mon(mDecoder->GetReentrantMonitor());
|
||||
int64_t media_duration = mDecoder->GetMediaDuration();
|
||||
if (media_duration != -1 && media_duration > duration) {
|
||||
// We decoded more than the reported duration (which could be estimated)
|
||||
LOG(PR_LOG_DEBUG, ("decoded duration > estimated duration"));
|
||||
duration = media_duration;
|
||||
}
|
||||
}
|
||||
|
||||
return duration;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user