clutter-gstreamer 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -4
- data/lib/clutter-gst.rb +3 -2
- data/lib/clutter-gstreamer.rb +17 -0
- data/sample/video-player.rb +2 -9
- data/sample/video-sink-navigation.rb +1 -2
- data/sample/video-sink.rb +1 -2
- data/test/clutter-gstreamer-test-utils.rb +21 -1
- data/test/run-test.rb +4 -1
- data/test/test-clutter-gst.rb +4 -1
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6683aaa552b67808c3b5d0ce3a0c4ac0e725213
|
4
|
+
data.tar.gz: a4b85a1907f902955debe8f55a1518bb88f21fbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e71e8cf39a2944d536dc25416a7c95a7a99eeee2809f1cd9d8f52eb40906efdd1bb41e0e88dad1ed7b652331b3cb798b7829f99a538d7587c69f3a24319e99c6
|
7
|
+
data.tar.gz: 31779e732593e7384ae69c72145afbe6a8f303408042dcdc929ba545f5e731c3c32d16290628d7a4de54ca3af0d414b52716e18894b82a1640a88ee981cbb71d
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
3
|
+
# Copyright (C) 2013-2014 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
|
@@ -46,7 +46,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
46
46
|
:name => "clutter-gst",
|
47
47
|
:download_site => :gnome,
|
48
48
|
:label => "Clutter-GStreamer",
|
49
|
-
:version => "2.0.
|
49
|
+
:version => "2.0.12",
|
50
50
|
:compression_method => "xz",
|
51
51
|
:windows => {
|
52
52
|
:configure_args => [
|
@@ -59,8 +59,6 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
59
59
|
end
|
60
60
|
package_task.define
|
61
61
|
|
62
|
-
Rake::Task["native:clutter-gstreamer:i386-mingw32"].prerequisites.clear
|
63
|
-
|
64
62
|
namespace :dependency do
|
65
63
|
desc "Install depenencies"
|
66
64
|
task :install do
|
data/lib/clutter-gst.rb
CHANGED
@@ -43,6 +43,8 @@ module ClutterGst
|
|
43
43
|
remove_method(:init)
|
44
44
|
remove_method(:const_missing)
|
45
45
|
end
|
46
|
+
Gst.init if Gst.respond_to?(:init)
|
47
|
+
Clutter.init if Clutter.respond_to?(:init)
|
46
48
|
loader = Loader.new(self, argv)
|
47
49
|
loader.load("ClutterGst")
|
48
50
|
end
|
@@ -61,11 +63,10 @@ module ClutterGst
|
|
61
63
|
def pre_load(repository, namespace)
|
62
64
|
init = repository.find(namespace, "init")
|
63
65
|
arguments = [
|
64
|
-
1 + @init_arguments.size,
|
65
66
|
[$0] + @init_arguments,
|
66
67
|
]
|
67
68
|
error, returned_arguments = init.invoke(:arguments => arguments)
|
68
|
-
@init_arguments.replace(returned_arguments)
|
69
|
+
@init_arguments.replace(returned_arguments[1..-1])
|
69
70
|
if error.to_i <= 0
|
70
71
|
raise InitError, "failed to initialize Clutter-GStreamer: #{error.name}"
|
71
72
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Copyright (C) 2014 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
|
+
require "clutter-gst"
|
data/sample/video-player.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
# Copyright (C) 2007,2008 OpenedHand
|
12
12
|
# Copyright (C) 2013 Collabora
|
13
13
|
#
|
14
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
14
|
+
# Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
|
15
15
|
#
|
16
16
|
# This library is free software; you can redistribute it and/or
|
17
17
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -27,8 +27,6 @@
|
|
27
27
|
# License along with this library; if not, write to the Free Software
|
28
28
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
29
29
|
|
30
|
-
# NOTE: This sample code is for libclutter-gst (a library by C) 2.0.2.
|
31
|
-
|
32
30
|
require "optparse"
|
33
31
|
|
34
32
|
require "clutter-gst"
|
@@ -220,10 +218,6 @@ app.vtexture.filename = ARGV[0]
|
|
220
218
|
pipe = app.vtexture.pipeline
|
221
219
|
raise "Unable to get gstreamer pipeline!" unless pipe
|
222
220
|
|
223
|
-
# TODO: want to not require Gst.init
|
224
|
-
# prepare Gst's methods (e.g. iterate_sinks)
|
225
|
-
Gst.init
|
226
|
-
|
227
221
|
iter = pipe.iterate_sinks
|
228
222
|
raise "Unable to iterate over sinks!" unless iter
|
229
223
|
|
@@ -259,8 +253,7 @@ app.control_seekbar.opacity = 0x99
|
|
259
253
|
|
260
254
|
app.control_label = Clutter::Text.new
|
261
255
|
app.control_label.font_name = "Sans Bold 14"
|
262
|
-
|
263
|
-
#app.control_label.text = File.basename(ARGV[0])
|
256
|
+
app.control_label.text = File.basename(ARGV[0])
|
264
257
|
stage.title = File.basename(ARGV[0]) # substitutes for label text
|
265
258
|
app.control_label.color = control_color1
|
266
259
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# Copyright (C) 2007,2008 OpenedHand
|
12
12
|
#
|
13
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
13
|
+
# Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
|
14
14
|
#
|
15
15
|
# This library is free software; you can redistribute it and/or
|
16
16
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -26,7 +26,6 @@
|
|
26
26
|
# License along with this library; if not, write to the Free Software
|
27
27
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
28
28
|
|
29
|
-
# NOTE: This sample code is for libclutter-gst (a library by C) 2.0.2.
|
30
29
|
require "clutter-gst"
|
31
30
|
|
32
31
|
stage = Clutter::Stage.new
|
data/sample/video-sink.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# Copyright (C) 2007,2008 OpenedHand
|
12
12
|
#
|
13
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
13
|
+
# Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
|
14
14
|
#
|
15
15
|
# This library is free software; you can redistribute it and/or
|
16
16
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -26,7 +26,6 @@
|
|
26
26
|
# License along with this library; if not, write to the Free Software
|
27
27
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
28
28
|
|
29
|
-
# NOTE: This sample code is for libclutter-gst (a library by C) 2.0.2.
|
30
29
|
require "clutter-gst"
|
31
30
|
|
32
31
|
stage = Clutter::Stage.new
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
1
|
+
# Copyright (C) 2013-2014 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
|
@@ -18,4 +18,24 @@ require "test-unit"
|
|
18
18
|
require "test/unit/notify"
|
19
19
|
|
20
20
|
module ClutterGStreamerTestUtils
|
21
|
+
def later_version?(major, minor, micro=nil)
|
22
|
+
micro ||= 0
|
23
|
+
clutter_gstreamer_version = [
|
24
|
+
ClutterGst::MAJOR_VERSION,
|
25
|
+
ClutterGst::MINOR_VERSION,
|
26
|
+
ClutterGst::MICRO_VERSION,
|
27
|
+
]
|
28
|
+
(clutter_gstreamer_version <=> [major, minor, micro]) >= 0
|
29
|
+
end
|
30
|
+
|
31
|
+
def only_clutter_gstreamer_version(major, minor, micro=nil)
|
32
|
+
micro ||= 0
|
33
|
+
unless later_version?(major, minor, micro)
|
34
|
+
omit("Require Clutter-GStreamer >= #{major}.#{minor}.#{micro}")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def omit_on_travis_ci
|
39
|
+
omit("This test can't be run on Travis CI") if ENV["CI"]
|
40
|
+
end
|
21
41
|
end
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
3
|
+
# Copyright (C) 2013-2014 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
|
@@ -55,6 +55,9 @@ require "gobject-introspection-test-utils"
|
|
55
55
|
$LOAD_PATH.unshift(File.join(clutter_base, "test"))
|
56
56
|
require "clutter-test-utils"
|
57
57
|
|
58
|
+
$LOAD_PATH.unshift(File.join(clutter_gstreamer_base, "test"))
|
59
|
+
require "clutter-gstreamer-test-utils"
|
60
|
+
|
58
61
|
require "clutter-gst"
|
59
62
|
|
60
63
|
exit Test::Unit::AutoRunner.run(true)
|
data/test/test-clutter-gst.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2013 Ruby-GNOME2 Project Team
|
1
|
+
# Copyright (C) 2013-2014 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
|
@@ -15,7 +15,10 @@
|
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
17
|
class ClutterGstTest < Test::Unit::TestCase
|
18
|
+
include ClutterGStreamerTestUtils
|
19
|
+
|
18
20
|
def test_init
|
21
|
+
omit_on_travis_ci
|
19
22
|
assert_nothing_raised do
|
20
23
|
ClutterGst.init
|
21
24
|
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.
|
4
|
+
version: 2.2.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: 2014-
|
11
|
+
date: 2014-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clutter
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.2.
|
19
|
+
version: 2.2.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.
|
26
|
+
version: 2.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gstreamer
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.2.
|
33
|
+
version: 2.2.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.
|
40
|
+
version: 2.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: test-unit-notify
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
description: Ruby/ClutterGStreamer is a Ruby binding of Clutter-GStreamer.
|
@@ -60,6 +60,7 @@ extra_rdoc_files: []
|
|
60
60
|
files:
|
61
61
|
- Rakefile
|
62
62
|
- lib/clutter-gst.rb
|
63
|
+
- lib/clutter-gstreamer.rb
|
63
64
|
- sample/media-actions-pause.png
|
64
65
|
- sample/media-actions-start.png
|
65
66
|
- sample/vid-panel.png
|
@@ -79,17 +80,17 @@ require_paths:
|
|
79
80
|
- lib
|
80
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
82
|
requirements:
|
82
|
-
- -
|
83
|
+
- - ">="
|
83
84
|
- !ruby/object:Gem::Version
|
84
85
|
version: 1.9.3
|
85
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
87
|
requirements:
|
87
|
-
- -
|
88
|
+
- - ">="
|
88
89
|
- !ruby/object:Gem::Version
|
89
90
|
version: '0'
|
90
91
|
requirements: []
|
91
92
|
rubyforge_project:
|
92
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.2.2
|
93
94
|
signing_key:
|
94
95
|
specification_version: 4
|
95
96
|
summary: Ruby/ClutterGStreamer is a Ruby binding of Clutter-GStreamer.
|