gstreamer 3.4.3 → 3.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gstreamer/rbgst.c +0 -1
- data/ext/gstreamer/rbgst.h +0 -1
- data/test/gstreamer-test-utils.rb +2 -2
- data/test/run-test.rb +18 -39
- metadata +5 -6
- data/ext/gstreamer/rbgst-element-factory.c +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ab96afd1bbc6e91a399b999ec49ef18c2645be0b10f81236cb2954857a28ada
|
4
|
+
data.tar.gz: cef49d93d9d3fa4b0da1f013cae42e088644817f5ff81c1d6253c85148a8fe99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fd126dfa686463a2d95ff2da24d68fb601ae85701572597f0bc663737f297a64ed5bfc3f27ac36a68a9c85714d16b571aa002ab2ad76e0caded1e801305caa7
|
7
|
+
data.tar.gz: 84890c9affe8464409d17ce809ce268084a4708afffe5fdf56398dcbf68557c794312b321bed30e2baf561241cde3a302a976a14d65ebdab071a929625f0516a
|
data/ext/gstreamer/rbgst.c
CHANGED
data/ext/gstreamer/rbgst.h
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2014 Ruby-
|
1
|
+
# Copyright (C) 2014-2021 Ruby-GNOME 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,7 +14,7 @@
|
|
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
|
-
require "
|
17
|
+
require "gst"
|
18
18
|
|
19
19
|
module GStreamerTestUtils
|
20
20
|
private
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2014-
|
3
|
+
# Copyright (C) 2014-2021 Ruby-GNOME 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
|
@@ -16,44 +16,23 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
19
|
+
require_relative "../../glib2/test/run-test"
|
20
|
+
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
"gstreamer",
|
26
|
+
]) do
|
27
|
+
require_relative "gstreamer-test-utils"
|
28
|
+
|
29
|
+
repository = GObjectIntrospection::Repository.default
|
30
|
+
begin
|
31
|
+
repository.require(Gst::Loader::NAMESPACE)
|
32
|
+
rescue GObjectIntrospection::RepositoryError
|
33
|
+
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
34
|
+
exit(true)
|
36
35
|
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
36
|
|
44
|
-
|
45
|
-
require "gstreamer-test-utils"
|
46
|
-
|
47
|
-
require "gst"
|
48
|
-
|
49
|
-
repository = GObjectIntrospection::Repository.default
|
50
|
-
begin
|
51
|
-
repository.require(Gst::Loader::NAMESPACE)
|
52
|
-
rescue GObjectIntrospection::RepositoryError
|
53
|
-
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
54
|
-
exit(true)
|
37
|
+
Gst.init
|
55
38
|
end
|
56
|
-
|
57
|
-
Gst.init
|
58
|
-
|
59
|
-
exit Test::Unit::AutoRunner.run(true, File.join(gstreamer_base, "test"))
|
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: 3.4.
|
4
|
+
version: 3.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gobject-introspection
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.4.
|
19
|
+
version: 3.4.7
|
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: 3.4.
|
26
|
+
version: 3.4.7
|
27
27
|
description: Ruby/GStreamer is a Ruby binding for GStreamer.
|
28
28
|
email: ruby-gnome2-devel-en@lists.sourceforge.net
|
29
29
|
executables: []
|
@@ -37,7 +37,6 @@ files:
|
|
37
37
|
- ext/gstreamer/depend
|
38
38
|
- ext/gstreamer/extconf.rb
|
39
39
|
- ext/gstreamer/rbgst-child-proxy.c
|
40
|
-
- ext/gstreamer/rbgst-element-factory.c
|
41
40
|
- ext/gstreamer/rbgst.c
|
42
41
|
- ext/gstreamer/rbgst.h
|
43
42
|
- extconf.rb
|
@@ -96,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
95
|
- !ruby/object:Gem::Version
|
97
96
|
version: '0'
|
98
97
|
requirements: []
|
99
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.3.0.dev
|
100
99
|
signing_key:
|
101
100
|
specification_version: 4
|
102
101
|
summary: Ruby/GStreamer is a Ruby binding for GStreamer.
|
@@ -1,61 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright (C) 2013 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 cElementFactory
|
24
|
-
|
25
|
-
#define SELF(object) (GST_ELEMENT_FACTORY(RVAL2GOBJ(object)))
|
26
|
-
|
27
|
-
static VALUE cStaticPadTemplate;
|
28
|
-
|
29
|
-
static VALUE
|
30
|
-
rg_static_pad_templates(VALUE self)
|
31
|
-
{
|
32
|
-
GstElementFactory *factory = SELF(self);
|
33
|
-
const GList *templates;
|
34
|
-
VALUE rb_templates;
|
35
|
-
|
36
|
-
rb_templates = rb_ary_new();
|
37
|
-
templates = gst_element_factory_get_static_pad_templates(factory);
|
38
|
-
for (; templates; templates = g_list_next(templates)) {
|
39
|
-
GstStaticPadTemplate *template = templates->data;
|
40
|
-
VALUE rb_template;
|
41
|
-
rb_template = rb_funcall(cStaticPadTemplate, rb_intern("new"), 0);
|
42
|
-
memcpy(DATA_PTR(rb_template), template, sizeof(GstStaticPadTemplate));
|
43
|
-
rb_ary_push(rb_templates, rb_template);
|
44
|
-
}
|
45
|
-
|
46
|
-
return rb_templates;
|
47
|
-
}
|
48
|
-
|
49
|
-
void
|
50
|
-
rb_gst_init_element_factory(void)
|
51
|
-
{
|
52
|
-
VALUE mGst;
|
53
|
-
VALUE RG_TARGET_NAMESPACE;
|
54
|
-
|
55
|
-
mGst = rb_const_get(rb_cObject, rb_intern("Gst"));
|
56
|
-
RG_TARGET_NAMESPACE = rb_const_get(mGst, rb_intern("ElementFactory"));
|
57
|
-
cStaticPadTemplate = rb_const_get(mGst, rb_intern("StaticPadTemplate"));
|
58
|
-
|
59
|
-
rb_remove_method(RG_TARGET_NAMESPACE, "static_pad_templates");
|
60
|
-
RG_DEF_METHOD(static_pad_templates, 0);
|
61
|
-
}
|