From 7577cbec37b590deffcfd22d4e456b2e90fcccdc Mon Sep 17 00:00:00 2001 From: lorabit Date: Thu, 12 Dec 2019 11:19:24 -0800 Subject: [PATCH] Missing "MP_" prefix RETURN_IF_ERROR & ASSIGN_OR_RETURN should be MP_RETURN_IF_ERROR and MP_ASSIGN_OR_RETURN --- mediapipe/docs/hello_world_desktop.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/docs/hello_world_desktop.md b/mediapipe/docs/hello_world_desktop.md index 236b8675e..3b952f6e9 100644 --- a/mediapipe/docs/hello_world_desktop.md +++ b/mediapipe/docs/hello_world_desktop.md @@ -80,10 +80,10 @@ ```c++ CalculatorGraph graph; - RETURN_IF_ERROR(graph.Initialize(config)); - ASSIGN_OR_RETURN(OutputStreamPoller poller, + MP_RETURN_IF_ERROR(graph.Initialize(config)); + MP_ASSIGN_OR_RETURN(OutputStreamPoller poller, graph.AddOutputStreamPoller("out")); - RETURN_IF_ERROR(graph.StartRun({})); + MP_RETURN_IF_ERROR(graph.StartRun({})); ``` 5. The example then creates 10 packets (each packet contains a string "Hello @@ -93,9 +93,9 @@ ```c++ for (int i = 0; i < 10; ++i) { - RETURN_IF_ERROR(graph.AddPacketToInputStream("in", MakePacket("Hello World!").At(Timestamp(i)))); + MP_RETURN_IF_ERROR(graph.AddPacketToInputStream("in", MakePacket("Hello World!").At(Timestamp(i)))); } - RETURN_IF_ERROR(graph.CloseInputStream("in")); + MP_RETURN_IF_ERROR(graph.CloseInputStream("in")); ``` 6. Through the `OutputStreamPoller` object the example then retrieves all 10