input/Proxy: use InputStreamPtr

This commit is contained in:
Max Kellermann
2017-12-26 11:37:29 +01:00
parent fb9a2c5431
commit 49619fbd77
9 changed files with 50 additions and 59 deletions

View File

@@ -61,8 +61,8 @@ public:
"foo bar");
CPPUNIT_ASSERT(sis->IsReady());
InputStream *ris = input_rewind_open(sis);
CPPUNIT_ASSERT(ris != sis);
auto ris = input_rewind_open(InputStreamPtr(sis));
CPPUNIT_ASSERT(ris.get() != sis);
CPPUNIT_ASSERT(ris != nullptr);
const std::lock_guard<Mutex> protect(mutex);