[gstreamermm: 93/167] fixed test-init test



commit 8a5955f74e698c8bb2ef997d2df09028ccaf647c
Author: Marcin Kolny at Flytronic <marcin kolny flytronic pl>
Date:   Wed Jul 31 09:17:27 2013 +0200

    fixed test-init test

 gstreamer/gstreamermm.h |    1 +
 tests/test-init.cc      |   13 +------------
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/gstreamer/gstreamermm.h b/gstreamer/gstreamermm.h
index b166c16..025ac49 100644
--- a/gstreamer/gstreamermm.h
+++ b/gstreamer/gstreamermm.h
@@ -157,6 +157,7 @@
 #include <gstreamermm/oggdemux.h>
 #include <gstreamermm/oggmux.h>
 #include <gstreamermm/subtitleoverlay.h>
+#include <gstreamermm/videooverlay.h>
 
 
 #endif // _GSTREAMERMM_H
diff --git a/tests/test-init.cc b/tests/test-init.cc
index ae4529f..4ecfcac 100644
--- a/tests/test-init.cc
+++ b/tests/test-init.cc
@@ -31,18 +31,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)


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