Sha256: b98019ae88ee0cd2be44e477190a44a044a86830504718597c6e7b0295d46d6d

Contents?: true

Size: 766 Bytes

Versions: 22

Compression:

Stored size: 766 Bytes

Contents

require 'rational'
require 'glib2'

base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
vendor_dir = base_dir + "vendor" + "local"
vendor_bin_dir = vendor_dir + "bin"
GLib.prepend_environment_path(vendor_bin_dir)
if vendor_bin_dir.exist?
  require 'pango'
  require 'gdk_pixbuf2'
end
begin
  major, minor, _ = RUBY_VERSION.split(/\./)
  require "#{major}.#{minor}/gstreamer.so"
rescue LoadError
  require "gstreamer.so"
end

argv_without_help_options = ARGV.reject do |option|
  /\A-h|--help\z/ =~ option
end
Gst.init(argv_without_help_options)

module Gst
  class Plugin
    def each_feature(&block)
      Registry.default.each_feature(name, &block)
    end
  end

  class Structure
    def inspect
      super.gsub(/>\z/, ": #{to_s}>")
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
gstreamer-1.2.6-x86-mingw32 lib/gst.rb
gstreamer-1.2.6 lib/gst.rb
gstreamer-1.2.5-x86-mingw32 lib/gst.rb
gstreamer-1.2.5 lib/gst.rb
gstreamer-1.2.4-x86-mingw32 lib/gst.rb
gstreamer-1.2.4 lib/gst.rb
gstreamer-1.2.3-x86-mingw32 lib/gst.rb
gstreamer-1.2.3 lib/gst.rb
gstreamer-1.2.2-x86-mingw32 lib/gst.rb
gstreamer-1.2.2 lib/gst.rb
gstreamer-1.2.1-x86-mingw32 lib/gst.rb
gstreamer-1.2.1 lib/gst.rb
gstreamer-1.2.0-x86-mingw32 lib/gst.rb
gstreamer-1.2.0 lib/gst.rb
gstreamer-1.1.9-x86-mingw32 lib/gst.rb
gstreamer-1.1.9 lib/gst.rb
gstreamer-1.1.8-x86-mingw32 lib/gst.rb
gstreamer-1.1.8 lib/gst.rb
gstreamer-1.1.7 lib/gst.rb
gstreamer-1.1.7-x86-mingw32 lib/gst.rb