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 +16 -12
- data/ext/gstreamer/rbgst-child-proxy.c +105 -0
- data/ext/gstreamer/rbgst.c +2 -1
- data/ext/gstreamer/rbgst.h +2 -1
- data/lib/gst.rb +1 -2
- data/lib/gst/caps.rb +14 -0
- data/lib/gstreamer.rb +17 -0
- data/test/gstreamer-test-utils.rb +17 -0
- data/test/run-test.rb +51 -0
- data/test/test-caps.rb +31 -0
- data/test/test-child-proxy.rb +27 -0
- data/test/test-element-factory.rb +23 -0
- metadata +21 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 763e09ed52e70db9807ea7240072f490e65e2cf1
|
|
4
|
+
data.tar.gz: 01a0218335683441d18894c8cac4c9382d04849a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5bda502f5bed3b4182b62d42a9c618a2d1c614fd139a72ddbe4804d4be995de740a0f35bd871465a6598590cab0b2be56a1dfac930a6d3f57da9e6e00266188
|
|
7
|
+
data.tar.gz: fb734cdc7dc5fa632511f0418f7c9cb1d6522023acabe05b1b0acad9c6d74c37817a2534a401af92ad5157dd00c9939ed75ce8b328521e6150b0ff075cbfa0e8
|
data/Rakefile
CHANGED
|
@@ -19,8 +19,8 @@ package = GNOME2Package.new do |_package|
|
|
|
19
19
|
_package.external_packages = [
|
|
20
20
|
{
|
|
21
21
|
:name => "libjpeg",
|
|
22
|
-
:base_name => "jpeg-
|
|
23
|
-
:archive_base_name => "jpegsrc.
|
|
22
|
+
:base_name => "jpeg-9a",
|
|
23
|
+
:archive_base_name => "jpegsrc.v9a.tar.gz",
|
|
24
24
|
:download_base_url => "http://www.ijg.org/files",
|
|
25
25
|
:label => "libjpeg",
|
|
26
26
|
:windows => {
|
|
@@ -30,9 +30,9 @@ package = GNOME2Package.new do |_package|
|
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
:name => "sqlite-autoconf",
|
|
33
|
-
:download_base_url => "http://www.sqlite.org/
|
|
33
|
+
:download_base_url => "http://www.sqlite.org/2014",
|
|
34
34
|
:label => "SQLite",
|
|
35
|
-
:version => "
|
|
35
|
+
:version => "3080600",
|
|
36
36
|
:compression_method => "gz",
|
|
37
37
|
:windows => {
|
|
38
38
|
:configure_args => [],
|
|
@@ -43,7 +43,7 @@ package = GNOME2Package.new do |_package|
|
|
|
43
43
|
:name => "libsoup",
|
|
44
44
|
:download_site => :gnome,
|
|
45
45
|
:label => "libsoup",
|
|
46
|
-
:version => "2.
|
|
46
|
+
:version => "2.48.0",
|
|
47
47
|
:compression_method => "xz",
|
|
48
48
|
:windows => {
|
|
49
49
|
:configure_args => [
|
|
@@ -51,6 +51,9 @@ package = GNOME2Package.new do |_package|
|
|
|
51
51
|
"--without-apache-httpd",
|
|
52
52
|
],
|
|
53
53
|
:build_concurrently => false,
|
|
54
|
+
:patches => [
|
|
55
|
+
"libsoup-2.48.0-remove-nonexistent-symbol.diff",
|
|
56
|
+
],
|
|
54
57
|
:built_file => "bin/libsoup-2.4-1.dll",
|
|
55
58
|
},
|
|
56
59
|
},
|
|
@@ -126,7 +129,7 @@ package = GNOME2Package.new do |_package|
|
|
|
126
129
|
:name => "gstreamer",
|
|
127
130
|
:download_base_url => "#{freedesktop_download_url_base}/gstreamer",
|
|
128
131
|
:label => "GStreamer",
|
|
129
|
-
:version => "1.
|
|
132
|
+
:version => "1.4.3",
|
|
130
133
|
:compression_method => "xz",
|
|
131
134
|
:windows => {
|
|
132
135
|
:configure_args => [
|
|
@@ -141,7 +144,7 @@ package = GNOME2Package.new do |_package|
|
|
|
141
144
|
:name => "gst-plugins-base",
|
|
142
145
|
:download_base_url => "#{freedesktop_download_url_base}/gst-plugins-base",
|
|
143
146
|
:label => "GStreamer plugins (base)",
|
|
144
|
-
:version => "1.
|
|
147
|
+
:version => "1.4.3",
|
|
145
148
|
:compression_method => "xz",
|
|
146
149
|
:windows => {
|
|
147
150
|
:configure_args => [
|
|
@@ -155,7 +158,7 @@ package = GNOME2Package.new do |_package|
|
|
|
155
158
|
:name => "gst-plugins-good",
|
|
156
159
|
:download_base_url => "#{freedesktop_download_url_base}/gst-plugins-good",
|
|
157
160
|
:label => "GStreamer plugins (good)",
|
|
158
|
-
:version => "1.
|
|
161
|
+
:version => "1.4.3",
|
|
159
162
|
:compression_method => "xz",
|
|
160
163
|
:windows => {
|
|
161
164
|
:configure_args => [
|
|
@@ -168,7 +171,7 @@ package = GNOME2Package.new do |_package|
|
|
|
168
171
|
:name => "gst-plugins-bad",
|
|
169
172
|
:download_base_url => "#{freedesktop_download_url_base}/gst-plugins-bad",
|
|
170
173
|
:label => "GStreamer plugins (bad)",
|
|
171
|
-
:version => "1.
|
|
174
|
+
:version => "1.4.3",
|
|
172
175
|
:compression_method => "xz",
|
|
173
176
|
:windows => {
|
|
174
177
|
:configure_args => ["--disable-librfb"],
|
|
@@ -182,7 +185,7 @@ package = GNOME2Package.new do |_package|
|
|
|
182
185
|
# :name => "gst-plugins-ugly",
|
|
183
186
|
# :download_base_url => "#{freedesktop_download_url_base}/gst-plugins-ugly",
|
|
184
187
|
# :label => "GStreamer plugins (ugly)",
|
|
185
|
-
# :version => "1.
|
|
188
|
+
# :version => "1.4.3",
|
|
186
189
|
# :compression_method => "xz",
|
|
187
190
|
# :windows => {
|
|
188
191
|
# :configure_args => [],
|
|
@@ -192,7 +195,7 @@ package = GNOME2Package.new do |_package|
|
|
|
192
195
|
:name => "gst-libav",
|
|
193
196
|
:download_base_url => "#{freedesktop_download_url_base}/gst-libav",
|
|
194
197
|
:label => "GStreamer libav",
|
|
195
|
-
:version => "1.
|
|
198
|
+
:version => "1.4.3",
|
|
196
199
|
:compression_method => "xz",
|
|
197
200
|
:windows => {
|
|
198
201
|
:configure_args => [
|
|
@@ -201,7 +204,8 @@ package = GNOME2Package.new do |_package|
|
|
|
201
204
|
"--target-os=mingw32 " +
|
|
202
205
|
"--arch=i686 " +
|
|
203
206
|
"--pkg-config=pkg-config " +
|
|
204
|
-
"--disable-gpl"
|
|
207
|
+
"--disable-gpl " +
|
|
208
|
+
"--disable-yasm",
|
|
205
209
|
],
|
|
206
210
|
:built_file => "lib/gstreamer-1.0/libgstlibav.dll",
|
|
207
211
|
},
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (C) 2014 Ruby-GNOME2 Project Team
|
|
4
|
+
*
|
|
5
|
+
* This library is free software; you can redistribute it and/or
|
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
|
7
|
+
* License as published by the Free Software Foundation; either
|
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
|
9
|
+
*
|
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
* Lesser General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
|
16
|
+
* License along with this library; if not, write to the Free Software
|
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
18
|
+
* MA 02110-1301 USA
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
#include "rbgst.h"
|
|
22
|
+
|
|
23
|
+
#define RG_TARGET_NAMESPACE cChildProxy
|
|
24
|
+
|
|
25
|
+
#define SELF(object) (GST_CHILD_PROXY(RVAL2GOBJ(object)))
|
|
26
|
+
|
|
27
|
+
static void
|
|
28
|
+
rg_raise_no_property_error(VALUE object, const gchar *name)
|
|
29
|
+
{
|
|
30
|
+
VALUE eNoSuchProperty;
|
|
31
|
+
|
|
32
|
+
eNoSuchProperty = rb_const_get(mGLib, rb_intern("NoSuchProperty"));
|
|
33
|
+
rb_raise(eNoSuchProperty,
|
|
34
|
+
"%s: No such property: <%s>",
|
|
35
|
+
rbg_inspect(object),
|
|
36
|
+
name);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static VALUE
|
|
40
|
+
rg_get_property(VALUE self, VALUE rb_name)
|
|
41
|
+
{
|
|
42
|
+
GstChildProxy *proxy;
|
|
43
|
+
const gchar *name;
|
|
44
|
+
GValue value = G_VALUE_INIT;
|
|
45
|
+
VALUE rb_value;
|
|
46
|
+
GObjectClass *g_object_class;
|
|
47
|
+
GParamSpec *property_spec;
|
|
48
|
+
|
|
49
|
+
proxy = SELF(self);
|
|
50
|
+
name = RVAL2CSTR_ACCEPT_SYMBOL(rb_name);
|
|
51
|
+
|
|
52
|
+
g_object_class = G_OBJECT_GET_CLASS(proxy);
|
|
53
|
+
property_spec = g_object_class_find_property(g_object_class, name);
|
|
54
|
+
if (!property_spec) {
|
|
55
|
+
rg_raise_no_property_error(self, name);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE(property_spec));
|
|
59
|
+
gst_child_proxy_get_property(proxy, name, &value);
|
|
60
|
+
rb_value = GVAL2RVAL(&value);
|
|
61
|
+
g_value_unset(&value);
|
|
62
|
+
|
|
63
|
+
return rb_value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
static VALUE
|
|
67
|
+
rg_set_property(VALUE self, VALUE rb_name, VALUE rb_value)
|
|
68
|
+
{
|
|
69
|
+
GstChildProxy *proxy;
|
|
70
|
+
const gchar *name;
|
|
71
|
+
GValue value = G_VALUE_INIT;
|
|
72
|
+
GObjectClass *g_object_class;
|
|
73
|
+
GParamSpec *property_spec;
|
|
74
|
+
|
|
75
|
+
proxy = SELF(self);
|
|
76
|
+
name = RVAL2CSTR_ACCEPT_SYMBOL(rb_name);
|
|
77
|
+
|
|
78
|
+
g_object_class = G_OBJECT_GET_CLASS(proxy);
|
|
79
|
+
property_spec = g_object_class_find_property(g_object_class, name);
|
|
80
|
+
if (!property_spec) {
|
|
81
|
+
rg_raise_no_property_error(self, name);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
g_value_init(&value, G_PARAM_SPEC_VALUE_TYPE(property_spec));
|
|
85
|
+
rbgobj_rvalue_to_gvalue(rb_value, &value);
|
|
86
|
+
gst_child_proxy_set_property(proxy, name, &value);
|
|
87
|
+
g_value_unset(&value);
|
|
88
|
+
|
|
89
|
+
return self;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
void
|
|
93
|
+
rb_gst_init_child_proxy(void)
|
|
94
|
+
{
|
|
95
|
+
VALUE mGst;
|
|
96
|
+
VALUE RG_TARGET_NAMESPACE;
|
|
97
|
+
|
|
98
|
+
mGst = rb_const_get(rb_cObject, rb_intern("Gst"));
|
|
99
|
+
RG_TARGET_NAMESPACE = rb_const_get(mGst, rb_intern("ChildProxy"));
|
|
100
|
+
|
|
101
|
+
rb_remove_method(RG_TARGET_NAMESPACE, "get_property");
|
|
102
|
+
RG_DEF_METHOD(get_property, 1);
|
|
103
|
+
rb_remove_method(RG_TARGET_NAMESPACE, "set_property");
|
|
104
|
+
RG_DEF_METHOD(set_property, 2);
|
|
105
|
+
}
|
data/ext/gstreamer/rbgst.c
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
|
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
|
|
@@ -180,5 +180,6 @@ Init_gstreamer (void)
|
|
|
180
180
|
rbgobj_register_r2g_func(GST_TYPE_LIST, rg_gst_value_list_r2g);
|
|
181
181
|
rbgobj_register_g2r_func(GST_TYPE_LIST, rg_gst_value_list_g2r);
|
|
182
182
|
|
|
183
|
+
rb_gst_init_child_proxy();
|
|
183
184
|
rb_gst_init_element_factory();
|
|
184
185
|
}
|
data/ext/gstreamer/rbgst.h
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
|
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
|
|
@@ -23,4 +23,5 @@
|
|
|
23
23
|
#include <rb-gobject-introspection.h>
|
|
24
24
|
|
|
25
25
|
extern void Init_gstreamer (void);
|
|
26
|
+
G_GNUC_INTERNAL extern void rb_gst_init_child_proxy (void);
|
|
26
27
|
G_GNUC_INTERNAL extern void rb_gst_init_element_factory (void);
|
data/lib/gst.rb
CHANGED
|
@@ -103,10 +103,9 @@ module Gst
|
|
|
103
103
|
def call_init_function(repository, namespace)
|
|
104
104
|
init_check = repository.find(namespace, "init_check")
|
|
105
105
|
arguments = [
|
|
106
|
-
1 + @init_arguments.size,
|
|
107
106
|
[$0] + @init_arguments,
|
|
108
107
|
]
|
|
109
|
-
succeeded,
|
|
108
|
+
succeeded, argv, error = init_check.invoke(:arguments => arguments)
|
|
110
109
|
@init_arguments.replace(argv[1..-1])
|
|
111
110
|
raise error unless succeeded
|
|
112
111
|
end
|
data/lib/gst/caps.rb
CHANGED
|
@@ -16,6 +16,20 @@
|
|
|
16
16
|
|
|
17
17
|
module Gst
|
|
18
18
|
class Caps
|
|
19
|
+
class << self
|
|
20
|
+
def any
|
|
21
|
+
caps = allocate
|
|
22
|
+
caps.__send__(:initialize_new_any)
|
|
23
|
+
caps
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def empty
|
|
27
|
+
caps = allocate
|
|
28
|
+
caps.__send__(:initialize_new_empty)
|
|
29
|
+
caps
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
19
33
|
def structures
|
|
20
34
|
size.times.collect do |i|
|
|
21
35
|
get_structure(i)
|
data/lib/gstreamer.rb
ADDED
|
@@ -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 "gst"
|
|
@@ -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 "test-unit"
|
data/test/run-test.rb
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#
|
|
3
|
+
# Copyright (C) 2014 Ruby-GNOME2 Project Team
|
|
4
|
+
#
|
|
5
|
+
# This library is free software; you can redistribute it and/or
|
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
|
7
|
+
# License as published by the Free Software Foundation; either
|
|
8
|
+
# version 2.1 of the License, or (at your option) any later version.
|
|
9
|
+
#
|
|
10
|
+
# This library is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Lesser General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Lesser General Public
|
|
16
|
+
# License along with this library; if not, write to the Free Software
|
|
17
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
18
|
+
|
|
19
|
+
ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
|
|
20
|
+
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
|
21
|
+
|
|
22
|
+
glib_base = File.join(ruby_gnome2_base, "glib2")
|
|
23
|
+
gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
|
|
24
|
+
gstreamer_base = File.join(ruby_gnome2_base, "gstreamer")
|
|
25
|
+
|
|
26
|
+
modules = [
|
|
27
|
+
[glib_base, "glib2"],
|
|
28
|
+
[gobject_introspection_base, "gobject-introspection"],
|
|
29
|
+
[gstreamer_base, "gstreamer"],
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
modules.each do |target, module_name|
|
|
33
|
+
makefile = File.join(target, "Makefile")
|
|
34
|
+
if File.exist?(makefile) and system("which make > /dev/null")
|
|
35
|
+
`make -C #{target.dump} > /dev/null` or exit(false)
|
|
36
|
+
end
|
|
37
|
+
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
|
38
|
+
$LOAD_PATH.unshift(File.join(target, "lib"))
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
|
42
|
+
require "glib-test-init"
|
|
43
|
+
|
|
44
|
+
$LOAD_PATH.unshift(File.join(gstreamer_base, "test"))
|
|
45
|
+
require "gstreamer-test-utils"
|
|
46
|
+
|
|
47
|
+
require "gst"
|
|
48
|
+
|
|
49
|
+
Gst.init
|
|
50
|
+
|
|
51
|
+
exit Test::Unit::AutoRunner.run(true)
|
data/test/test-caps.rb
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
class TestCaps < Test::Unit::TestCase
|
|
18
|
+
class TestConstructor < self
|
|
19
|
+
def test_any
|
|
20
|
+
assert_equal("ANY", Gst::Caps.any.to_s)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_empty
|
|
24
|
+
assert_equal("EMPTY", Gst::Caps.empty.to_s)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def test_media_type
|
|
28
|
+
assert_equal("audio/ogg", Gst::Caps.new("audio/ogg").to_s)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
class TestChildProxy < Test::Unit::TestCase
|
|
18
|
+
def setup
|
|
19
|
+
@bin = Gst::ElementFactory.make("decodebin")
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def test_property
|
|
23
|
+
any_caps = Gst::Caps.any
|
|
24
|
+
@bin.caps = any_caps
|
|
25
|
+
assert_equal(any_caps.to_s, @bin.caps.to_s)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
class TestElementFactory < Test::Unit::TestCase
|
|
18
|
+
def test_find
|
|
19
|
+
name = "playbin"
|
|
20
|
+
factory = Gst::ElementFactory.find(name)
|
|
21
|
+
assert_equal(name, factory.name)
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: 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: glib2
|
|
@@ -16,28 +16,28 @@ 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: gobject-introspection
|
|
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
|
description: Ruby/GStreamer is a Ruby binding for GStreamer.
|
|
42
42
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
|
43
43
|
executables: []
|
|
@@ -46,6 +46,12 @@ extensions:
|
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
48
|
- Rakefile
|
|
49
|
+
- ext/gstreamer/depend
|
|
50
|
+
- ext/gstreamer/extconf.rb
|
|
51
|
+
- ext/gstreamer/rbgst-child-proxy.c
|
|
52
|
+
- ext/gstreamer/rbgst-element-factory.c
|
|
53
|
+
- ext/gstreamer/rbgst.c
|
|
54
|
+
- ext/gstreamer/rbgst.h
|
|
49
55
|
- extconf.rb
|
|
50
56
|
- lib/gst.rb
|
|
51
57
|
- lib/gst/base-loader.rb
|
|
@@ -58,11 +64,7 @@ files:
|
|
|
58
64
|
- lib/gst/plugin-feature.rb
|
|
59
65
|
- lib/gst/registry.rb
|
|
60
66
|
- lib/gst/structure.rb
|
|
61
|
-
-
|
|
62
|
-
- ext/gstreamer/extconf.rb
|
|
63
|
-
- ext/gstreamer/rbgst-element-factory.c
|
|
64
|
-
- ext/gstreamer/rbgst.c
|
|
65
|
-
- ext/gstreamer/rbgst.h
|
|
67
|
+
- lib/gstreamer.rb
|
|
66
68
|
- sample/audio-example.rb
|
|
67
69
|
- sample/framestep1.rb
|
|
68
70
|
- sample/gst-inspect.rb
|
|
@@ -72,6 +74,11 @@ files:
|
|
|
72
74
|
- sample/stream-status.rb
|
|
73
75
|
- sample/text-color-example.rb
|
|
74
76
|
- sample/typefind.rb
|
|
77
|
+
- test/gstreamer-test-utils.rb
|
|
78
|
+
- test/run-test.rb
|
|
79
|
+
- test/test-caps.rb
|
|
80
|
+
- test/test-child-proxy.rb
|
|
81
|
+
- test/test-element-factory.rb
|
|
75
82
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
|
76
83
|
licenses:
|
|
77
84
|
- LGPLv2.1 or later
|
|
@@ -82,17 +89,17 @@ require_paths:
|
|
|
82
89
|
- lib
|
|
83
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
91
|
requirements:
|
|
85
|
-
- -
|
|
92
|
+
- - ">="
|
|
86
93
|
- !ruby/object:Gem::Version
|
|
87
94
|
version: 1.9.3
|
|
88
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
96
|
requirements:
|
|
90
|
-
- -
|
|
97
|
+
- - ">="
|
|
91
98
|
- !ruby/object:Gem::Version
|
|
92
99
|
version: '0'
|
|
93
100
|
requirements: []
|
|
94
101
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.
|
|
102
|
+
rubygems_version: 2.2.2
|
|
96
103
|
signing_key:
|
|
97
104
|
specification_version: 4
|
|
98
105
|
summary: Ruby/GStreamer is a Ruby binding for GStreamer.
|