[gstreamermm: 139/167] minor improvements



commit 80378a888ff9e97d7b2e5c0dc4b143f1a3297964
Author: Marcin Kolny [loganek] <marcin kolny gmail com>
Date:   Mon Aug 5 23:47:15 2013 +0200

    minor improvements

 gstreamer/src/urihandler.hg                       |    1 +
 tests/regression/test-regression-seekonstartup.cc |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gstreamer/src/urihandler.hg b/gstreamer/src/urihandler.hg
index a6e58a2..70cf420 100644
--- a/gstreamer/src/urihandler.hg
+++ b/gstreamer/src/urihandler.hg
@@ -55,6 +55,7 @@ public:
   _WRAP_METHOD(static Glib::ustring get_protocol(const Glib::ustring& uri), gst_uri_get_protocol)
   _WRAP_METHOD(static Glib::ustring get_location(const Glib::ustring& uri), gst_uri_get_location)
   _WRAP_METHOD(static Glib::ustring construct_uri(const Glib::ustring& protocol, const Glib::ustring& 
location), gst_uri_construct)
+  _WRAP_METHOD(static Glib::ustring filename_to_uri(const Glib::ustring& filename), gst_filename_to_uri, 
errthrow)
   _WRAP_METHOD(static Glib::RefPtr<Gst::Element> make_element_from_uri(const URIType type, const 
Glib::ustring& uri, const Glib::ustring& name), gst_element_make_from_uri, errthrow)
 
   _WRAP_METHOD(URIType get_uri_type() const, gst_uri_handler_get_uri_type)
diff --git a/tests/regression/test-regression-seekonstartup.cc 
b/tests/regression/test-regression-seekonstartup.cc
index 6e38a9b..adf9dd4 100644
--- a/tests/regression/test-regression-seekonstartup.cc
+++ b/tests/regression/test-regression-seekonstartup.cc
@@ -20,7 +20,7 @@ RefPtr<Pipeline> pipeline;
 RefPtr<Pad> sink_pad;
 static volatile gint counter;
 bool prerolled = false;
-bool was_check = false;
+gboolean was_check = 0;
 
 bool on_timeout()
 {
@@ -133,7 +133,7 @@ TEST(RegressionSeekOnStartupTest, SeekToPositionWhenPipelineStarts)
     ASSERT_TRUE(vs);
     ASSERT_TRUE(sink);
 
-    src->set_property("uri", Glib::ustring("file:///home/loganek/test.ogg"));
+    ASSERT_NO_THROW(src->set_property("uri", URIHandler::filename_to_uri(input_filename)));
 
     ASSERT_NO_THROW(pipeline->add(src)->add(csp)->add(vs)->add(sink));
     ASSERT_NO_THROW(csp->link(vs)->link(sink));


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