[gstreamermm: 153/167] minor



commit 67afcc36b0fc1cf78ef76bf7583285bd539af79d
Author: Marcin Kolny at Flytronic.pl <marcin kolny flytronic pl>
Date:   Mon Aug 12 13:03:21 2013 +0200

    minor

 tests/plugins/test-plugin-appsink.cc |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/tests/plugins/test-plugin-appsink.cc b/tests/plugins/test-plugin-appsink.cc
index 44463e9..374fa14 100644
--- a/tests/plugins/test-plugin-appsink.cc
+++ b/tests/plugins/test-plugin-appsink.cc
@@ -65,17 +65,14 @@ TEST_F(AppSinkPluginTest, UseAppSinkDuringDataFlowInPipeline)
     ASSERT_TRUE(buf_out);
 
     ASSERT_TRUE(buf_out->memcmp(0, data.c_str(), data.length()) == 0);
-    buf_out->map(map_info, MAP_READ);
-    assert(std::string((char *)map_info->get_data()) == data);
-    buf_out->unmap(map_info);
 
-     appsrc->end_of_stream();
+    appsrc->end_of_stream();
 
-     RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
-     ASSERT_TRUE(msg);
-     ASSERT_EQ(MESSAGE_EOS, msg->get_message_type());
+    RefPtr<Message> msg = pipeline->get_bus()->poll((MessageType)(MESSAGE_EOS | MESSAGE_ERROR) , 1*SECOND);
+    ASSERT_TRUE(msg);
+    ASSERT_EQ(MESSAGE_EOS, msg->get_message_type());
 
-     pipeline->set_state(STATE_NULL);
+    pipeline->set_state(STATE_NULL);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]