Ticket #11858: 0003-Use-ERROR-macro-in-MediaAddonServer-instead-of-debug.patch

File 0003-Use-ERROR-macro-in-MediaAddonServer-instead-of-debug.patch, 1.4 KB (added by Barrett, 10 years ago)
  • src/servers/media_addon/MediaAddonServer.cpp

    From f1b46b4dd50c7985e62c8a06a4e9e0b37c375702 Mon Sep 17 00:00:00 2001
    From: Dario Casalinuovo <b.vitruvio@gmail.com>
    Date: Mon, 9 Mar 2015 20:32:57 +0100
    Subject: [PATCH 3/3] Use ERROR macro in MediaAddonServer instead of debugger
     call
    
    ---
     src/servers/media_addon/MediaAddonServer.cpp | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/servers/media_addon/MediaAddonServer.cpp b/src/servers/media_addon/MediaAddonServer.cpp
    index 48e4370..9924bb5 100644
    a b MediaAddonServer::ReadyToRun()  
    259259    if (result != B_OK) {
    260260        fprintf(stderr, "Can't register system time source : %s\n",
    261261            strerror(result));
    262         debugger("Can't register system time source");
     262        ERROR("Can't register system time source");
    263263    }
    264264
    265265    if (fSystemTimeSource->ID() != NODE_SYSTEM_TIMESOURCE_ID)
    266         debugger("System time source got wrong node ID");
     266        ERROR("System time source got wrong node ID");
    267267    media_node node = fSystemTimeSource->Node();
    268268    result = MediaRosterEx(fMediaRoster)->SetNode(SYSTEM_TIME_SOURCE, &node);
    269269    if (result != B_OK)
    270         debugger("Can't setup system time source as default");
     270        ERROR("Can't setup system time source as default");
    271271
    272272    // During startup, first all add-ons are loaded, then all
    273273    // nodes (flavors) representing physical inputs and outputs