[gstreamermm] fixed example



commit 0e23ba303bb179bf093191f953e79d221652beb9
Author: Marcin Kolny <marcin kolny flytronic pl>
Date:   Mon Oct 7 14:43:17 2013 +0200

    fixed example

 tests/plugins/test-foo.h |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/tests/plugins/test-foo.h b/tests/plugins/test-foo.h
index 281b7d5..e6dc28a 100644
--- a/tests/plugins/test-foo.h
+++ b/tests/plugins/test-foo.h
@@ -12,12 +12,10 @@
 #include <gstreamermm/private/element_p.h>
 #include <assert.h>
 
-using namespace Gst;
-
-class Foo : public Element
+class Foo : public Gst::Element
 {
-    Glib::RefPtr<Pad> sinkpad;
-    Glib::RefPtr<Pad> srcpad;
+    Glib::RefPtr<Gst::Pad> sinkpad;
+    Glib::RefPtr<Gst::Pad> srcpad;
     Glib::Property<Glib::ustring> sample_property;
 
 public:
@@ -37,7 +35,7 @@ public:
                         Gst::Caps::create_any())->gobj());
     }
 
-    FlowReturn chain(const Glib::RefPtr<Gst::Pad> &pad, Glib::RefPtr<Gst::Buffer> &buf)
+    Gst::FlowReturn chain(const Glib::RefPtr<Gst::Pad> &pad, Glib::RefPtr<Gst::Buffer> &buf)
     {
         buf = buf->create_writable();
         assert(buf->gobj()->mini_object.refcount==1);
@@ -62,7 +60,7 @@ public:
 
     static bool register_foo(Glib::RefPtr<Gst::Plugin> plugin)
     {
-        ElementFactory::register_element(plugin, "foomm", 10, register_mm_type<Foo>("foomm"));
+        Gst::ElementFactory::register_element(plugin, "foomm", 10, Gst::register_mm_type<Foo>("foomm"));
 
         return true;
     }


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