[haiku-commits] haiku: hrev53368 - src/servers/media

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 12 Aug 2019 20:53:24 -0400 (EDT)

hrev53368 adds 1 changeset to branch 'master'
old head: ec2d11c47ccf308255cbf7e5a5f049e6a39cb76c
new head: 91af5aa6b651f70137ae2ea4dad3049bd349ca03
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=91af5aa6b651+%5Eec2d11c47ccf

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

91af5aa6b651: media_server: Fix fetching the team_id from the SOME_APP_QUIT 
message.
  
  Now the buffers of crashed teams will actually be removed from the
  media_server. (Was this code just never tested?!)

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

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

Revision:    hrev53368
Commit:      91af5aa6b651f70137ae2ea4dad3049bd349ca03
URL:         https://git.haiku-os.org/haiku/commit/?id=91af5aa6b651
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Tue Aug 13 00:26:42 2019 UTC

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

1 file changed, 2 insertions(+), 2 deletions(-)
src/servers/media/media_server.cpp | 4 ++--

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

diff --git a/src/servers/media/media_server.cpp 
b/src/servers/media/media_server.cpp
index 193eb88af7..071792a0e6 100644
--- a/src/servers/media/media_server.cpp
+++ b/src/servers/media/media_server.cpp
@@ -435,7 +435,7 @@ ServerApp::_HandleMessage(int32 code, const void* data, 
size_t size)
                        request.SendReply(status, &reply, sizeof(reply));
                        break;
                }
-               
+
                case SERVER_RELEASE_NODE_ALL:
                {
                        const server_release_node_request& request
@@ -952,7 +952,7 @@ ServerApp::MessageReceived(BMessage* msg)
                                gNodeManager->CleanupDormantFlavorInfos();
 
                        team_id id;
-                       if (msg->FindInt32("team", &id) == B_OK
+                       if (msg->FindInt32("be:team", &id) == B_OK
                                        && gAppManager->HasTeam(id)) {
                                gAppManager->UnregisterTeam(id);
                        }


Other related posts: