Use Pipeline to Retrieve Buffer

This commit is contained in:
2020-01-12 15:16:47 -08:00
parent d0cbfacef8
commit 628e9e4adf

View File

@@ -16,7 +16,7 @@ void StreamReader::run()
// wait for this to unblock before called in event loop // wait for this to unblock before called in event loop
// Retrieve next buffer // Retrieve next buffer
PvResult lResult = Stream->RetrieveBuffer(&lBuffer, &lOperationResult, 1000); PvResult lResult = Pipeline->RetrieveNextBuffer(&lBuffer, 1000, &lOperationResult);
if (lResult.IsOK()) if (lResult.IsOK())
{ {
if (lOperationResult.IsOK()) if (lOperationResult.IsOK())