[haiku-commits] haiku: hrev49584 - src/kits/media

  • From: b.vitruvio@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 26 Aug 2015 23:01:59 +0200 (CEST)

hrev49584 adds 1 changeset to branch 'master'
old head: 14156a33ac0233f4233546080d6b975618b331fa
new head: da1815146999aa993efcf62669ccfc3f552c978b
overview:
http://cgit.haiku-os.org/haiku/log/?qt=range&q=da1815146999+%5E14156a33ac02

----------------------------------------------------------------------------

da1815146999: Revert "MediaNode: Wait for 0 time if the absolute timeout is in
the past"

This reverts commit ae9cbf9c4e167470b47964059e90c2b0881367eb.

* Thanks to Pawel Dziepak for reporting!

[ Dario Casalinuovo <b.vitruvio@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision: hrev49584
Commit: da1815146999aa993efcf62669ccfc3f552c978b
URL: http://cgit.haiku-os.org/haiku/commit/?id=da1815146999
Author: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
Date: Wed Aug 26 18:53:36 2015 UTC

----------------------------------------------------------------------------

1 file changed, 4 deletions(-)
src/kits/media/MediaNode.cpp | 4 ----

----------------------------------------------------------------------------

diff --git a/src/kits/media/MediaNode.cpp b/src/kits/media/MediaNode.cpp
index ab68d92..bece94a 100644
--- a/src/kits/media/MediaNode.cpp
+++ b/src/kits/media/MediaNode.cpp
@@ -343,10 +343,6 @@ BMediaNode::WaitForMessage(bigtime_t waitUntil, uint32
flags,
char data[B_MEDIA_MESSAGE_SIZE];
int32 message;
ssize_t size;
-
- if (waitUntil < TimeSource()->RealTime())
- waitUntil = 0;
-
while (true) {
size = read_port_etc(ControlPort(), &message, data,
sizeof(data), B_ABSOLUTE_TIMEOUT, waitUntil);


Other related posts: