[gstreamermm: 96/167] fixed some tests



commit c94cf8086af2c3ae72bcc25aa9a8f9c08aaac345
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date:   Wed Jul 31 11:30:10 2013 +0200

    fixed some tests

 tests/test-init-check.cc  |   13 +------------
 tests/test-init-noargs.cc |   11 -----------
 2 files changed, 1 insertions(+), 23 deletions(-)
---
diff --git a/tests/test-init-check.cc b/tests/test-init-check.cc
index 6524af7..cd7e645 100644
--- a/tests/test-init-check.cc
+++ b/tests/test-init-check.cc
@@ -44,18 +44,7 @@ int main(int argc, char** argv)
     std::cout << "Successfully created gst element '" <<
       element->get_name() << "'." << std::endl;
 
-  Glib::RefPtr< Gst::ElementInterfaced<Gst::XOverlay> > xoverlay =
-    Gst::Interface::cast <Gst::XOverlay>(element);
-
-  if(xoverlay)
-  {
-    std::cout << "element '" << element->get_name() <<
-      "' implements XOverlay interface." << std::endl;
-
-    xoverlay->handle_events(false);
-  }
-
-  GstClock* gst_clock = gst_audio_clock_new("clock", 0, 0);
+  GstClock* gst_clock = gst_audio_clock_new("clock", 0, 0, 0);
   Glib::RefPtr<Gst::AudioClock> clock = Glib::wrap(GST_AUDIO_CLOCK(gst_clock));
 
   if(clock)
diff --git a/tests/test-init-noargs.cc b/tests/test-init-noargs.cc
index 4b29440..f970e44 100644
--- a/tests/test-init-noargs.cc
+++ b/tests/test-init-noargs.cc
@@ -30,16 +30,5 @@ int main(int, char**)
     std::cout << "Successfully created gst element '" <<
       element->get_name() << "'." << std::endl;
 
-  Glib::RefPtr< Gst::ElementInterfaced<Gst::XOverlay> > xoverlay =
-    Gst::Interface::cast <Gst::XOverlay>(element);
-
-  if(xoverlay)
-  {
-    std::cout << "element '" << element->get_name() <<
-      "' implements XOverlay interface." << std::endl;
-
-    xoverlay->handle_events(false);
-  }
-
   return 0;
 }


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