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 +4 -4
- data/Rakefile +2 -2
- data/lib/clutter-gst.rb +13 -1
- data/test/run-test.rb +9 -3
- data/test/{test-clutter-gst.rb → test-clutter-gst-video-sink.rb} +6 -7
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8833f91fbc0b1094e049e2516ee1741abac7a519
|
4
|
+
data.tar.gz: 711735bd7f3dfc80e5e69a005f72778370f05a49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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-
|
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.
|
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
|
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-
|
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)
|
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
|
17
|
+
class ClutterGstVideoSinkTest < Test::Unit::TestCase
|
18
18
|
include ClutterGStreamerTestUtils
|
19
19
|
|
20
|
-
def
|
21
|
-
|
22
|
-
|
23
|
-
|
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:
|
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-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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
|