Skip to content
This repository
Browse code

gstreamer-gi: priority of add_watch can be omitted

Reported by Vincent Carmona. Thanks!!!
  • Loading branch information...
commit 381a4583408d26d06a346f2abd208f21255da1ab 1 parent e2e1b6b
Kouhei Sutou authored
1  gstreamer-gi/lib/gst.rb
@@ -32,6 +32,7 @@ def init(argv=ARGV)
32 32
       @initialized = true
33 33
       loader = Loader.new(self, argv)
34 34
       loader.load("Gst")
  35
+      require "gst/bus"
35 36
     end
36 37
   end
37 38
 
24  gstreamer-gi/lib/gst/bus.rb
... ...
@@ -0,0 +1,24 @@
  1
+# Copyright (C) 2013  Ruby-GNOME2 Project Team
  2
+#
  3
+# This library is free software; you can redistribute it and/or
  4
+# modify it under the terms of the GNU Lesser General Public
  5
+# License as published by the Free Software Foundation; either
  6
+# version 2.1 of the License, or (at your option) any later version.
  7
+#
  8
+# This library is distributed in the hope that it will be useful,
  9
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
  10
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11
+# Lesser General Public License for more details.
  12
+#
  13
+# You should have received a copy of the GNU Lesser General Public
  14
+# License along with this library; if not, write to the Free Software
  15
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  16
+
  17
+module Gst
  18
+  class Bus
  19
+    alias_method :add_watch_full, :add_watch
  20
+    def add_watch(priority=GLib::PRIORITY_DEFAULT, &block)
  21
+      add_watch_full(priority, &block)
  22
+    end
  23
+  end
  24
+end

0 notes on commit 381a458

Please sign in to comment.
Something went wrong with that request. Please try again.