MediaKit and MediaPlayer Style Fixes

* Suggested by korli, thanks!
This commit is contained in:
Dario Casalinuovo 2016-05-17 02:02:33 +02:00
parent 6646363eba
commit 51c8ec34d0
2 changed files with 4 additions and 6 deletions

View File

@ -722,7 +722,7 @@ DragSortableListView::RemoveSelected()
{
BList indices;
GetSelectedItems(indices);
int32 index = CurrentSelection()-1;
int32 index = CurrentSelection() - 1;
DeselectAll();

View File

@ -247,11 +247,9 @@ BMediaEventLooper::ControlLoop()
// notify to the producer only the portion
// that might be attributable.
bigtime_t lateness = waitUntil - TimeSource()->RealTime();
if (lateness < 0) {
if (event.enqueue_time > waitUntil) {
lateness = event.enqueue_time
- TimeSource()->RealTime();
}
if (lateness < 0 && event.enqueue_time > waitUntil) {
lateness = event.enqueue_time
- TimeSource()->RealTime();
}
DispatchEvent(&event, -lateness, hasRealtime);
}