clutter-gstreamer 2.2.5 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a60e3ee03d984facea4e198a8d7bb543b8eb839
4
- data.tar.gz: 5f4a50076ef1aa1c490183ac2db1bf71fa3f6f7d
3
+ metadata.gz: 8833f91fbc0b1094e049e2516ee1741abac7a519
4
+ data.tar.gz: 711735bd7f3dfc80e5e69a005f72778370f05a49
5
5
  SHA512:
6
- metadata.gz: dd60da2f85c88c50e8f1f56098067787db68e9eb21bf48c0b9fbf13d1d0f23c584d4a0872528f641b6558221330c3b83626012658f75fe8ef7f8d3b491564bbc
7
- data.tar.gz: 48d38b59219caa2e1947b9c3faac302b33564f873910f856ba785f95308d48ee22387df1c467910c81b3eb0914d50f7e79b912578eaca97dc23bd80b9075f54f
6
+ metadata.gz: b810f7f2acdde8685800f01902214ed524c2ab9a5bde62160edc76a061a9fc9a023a7c1dcb1926b0f34eb1a5edb5b1fa1ae5c0fa71a1cd2a486f909862ef9ee7
7
+ data.tar.gz: b9959ef14cff5d1d1141d10baa8a07f097a33d4bf1660bc5df48510c96fe7540e3f14e9cc1b10d12ad11604e1484c7c08e2de248641aaaa57eec8afb13f5221e
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -47,7 +47,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
47
47
  :name => "clutter-gst",
48
48
  :download_site => :gnome,
49
49
  :label => "Clutter-GStreamer",
50
- :version => "3.0.0",
50
+ :version => "3.0.10",
51
51
  :compression_method => "xz",
52
52
  :windows => {
53
53
  :configure_args => [
data/lib/clutter-gst.rb CHANGED
@@ -47,11 +47,13 @@ module ClutterGst
47
47
  Gst.init if Gst.respond_to?(:init)
48
48
  Clutter.init if Clutter.respond_to?(:init)
49
49
  loader = Loader.new(self, argv)
50
- loader.load("ClutterGst")
50
+ loader.load
51
51
  end
52
52
  end
53
53
 
54
54
  class Loader < GObjectIntrospection::Loader
55
+ NAMESPACE = "ClutterGst"
56
+
55
57
  class InitError < StandardError
56
58
  end
57
59
 
@@ -60,6 +62,10 @@ module ClutterGst
60
62
  @init_arguments = init_arguments
61
63
  end
62
64
 
65
+ def load
66
+ super(NAMESPACE)
67
+ end
68
+
63
69
  private
64
70
  def pre_load(repository, namespace)
65
71
  init = repository.find(namespace, "init")
@@ -75,5 +81,11 @@ module ClutterGst
75
81
 
76
82
  def post_load(repository, namespace)
77
83
  end
84
+
85
+ def initialize_post(object)
86
+ super
87
+ return unless object.is_a?(GLib::Object)
88
+ self.class.reference_gobject(object, :sink => true)
89
+ end
78
90
  end
79
91
  end
data/test/run-test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -47,8 +47,6 @@ end
47
47
  $LOAD_PATH.unshift(File.join(glib_base, "test"))
48
48
  require "glib-test-init"
49
49
 
50
- $VERBOSE = false # TODO: remove me
51
-
52
50
  $LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
53
51
  require "gobject-introspection-test-utils"
54
52
 
@@ -60,4 +58,12 @@ require "clutter-gstreamer-test-utils"
60
58
 
61
59
  require "clutter-gst"
62
60
 
61
+ repository = GObjectIntrospection::Repository.default
62
+ begin
63
+ repository.require(ClutterGst::Loader::NAMESPACE)
64
+ rescue GLib::Error
65
+ puts("Omit because typelib file doesn't exist: #{$!.message}")
66
+ exit(true)
67
+ end
68
+
63
69
  exit Test::Unit::AutoRunner.run(true)
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
1
+ # Copyright (C) 2015 Ruby-GNOME2 Project Team
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -14,13 +14,12 @@
14
14
  # License along with this library; if not, write to the Free Software
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
- class ClutterGstTest < Test::Unit::TestCase
17
+ class ClutterGstVideoSinkTest < Test::Unit::TestCase
18
18
  include ClutterGStreamerTestUtils
19
19
 
20
- def test_init
21
- omit_on_travis_ci
22
- assert_nothing_raised do
23
- ClutterGst.init
24
- end
20
+ def test_texture
21
+ texture = Clutter::Texture.new
22
+ sink = ClutterGst::VideoSink.new(texture)
23
+ assert_equal(texture, sink.texture)
25
24
  end
26
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clutter-gstreamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.5
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-24 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gdk_pixbuf2
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.5
19
+ version: 3.0.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.5
26
+ version: 3.0.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: clutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.5
33
+ version: 3.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.5
40
+ version: 3.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gstreamer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.2.5
47
+ version: 3.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.2.5
54
+ version: 3.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: test-unit-notify
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ files:
83
83
  - sample/video-sink.rb
84
84
  - test/clutter-gstreamer-test-utils.rb
85
85
  - test/run-test.rb
86
- - test/test-clutter-gst.rb
86
+ - test/test-clutter-gst-video-sink.rb
87
87
  homepage: http://ruby-gnome2.sourceforge.jp/
88
88
  licenses:
89
89
  - LGPLv2.1 or later