gstreamer 3.4.0 → 3.4.5

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
  SHA256:
3
- metadata.gz: 88d5f5871ee410562577d49c724bd2e663dbfd42d61b1808a63ef8fad885f792
4
- data.tar.gz: c97c4e10324556ea715127042a706472a03c3c5f79133fae8d1a3c651a7c5c49
3
+ metadata.gz: b758343ac7311c696fea355dba5139514b2f3d11c823fda071bd28b2da26ee8f
4
+ data.tar.gz: daa03d95f488489dc9af872e17c73849efbd702d1ef6d2b226b15b9b6b428c57
5
5
  SHA512:
6
- metadata.gz: 9c02a512411ef73c240005e5a688decb9a201a2df88d370df6a0016c483053e0afa312d813dae0a8c6aa83d1412e39010fce4f87ebf1177525a35c78b35346d2
7
- data.tar.gz: e159db04853c4bcc1bee61ac55445e9251b3ca993993d47f1f15cbf6b87dbf882e4229107f8404a4d4267ef9906b79c1e5c04fe21a7968df08dfca5c42333026
6
+ metadata.gz: 1f6c85966d331ddfbc635b9458c5fc6ae8e7da62ba72dcc6babc2fec2b2d6773f9a8348bb41cb88b6ec061e1d34b141014da64f497ddf4d254a04d45930e36db
7
+ data.tar.gz: 3eb24496900cfa3deb8710772e3b16c39e08959500db05a6073a5eb88aff15a2d8b60a00196dc3b6e817a5bb9c219d44693352a4ce10568f72423c3d397897e1
@@ -71,5 +71,4 @@ Init_gstreamer (void)
71
71
  rbgobj_register_g2r_func(GST_TYPE_LIST, rg_gst_value_list_g2r);
72
72
 
73
73
  rb_gst_init_child_proxy();
74
- rb_gst_init_element_factory();
75
74
  }
@@ -24,4 +24,3 @@
24
24
 
25
25
  extern void Init_gstreamer (void);
26
26
  G_GNUC_INTERNAL extern void rb_gst_init_child_proxy (void);
27
- G_GNUC_INTERNAL extern void rb_gst_init_element_factory (void);
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2014 Ruby-GNOME2 Project Team
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 "test-unit"
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-2015 Ruby-GNOME2 Project Team
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
- 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)
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
- $LOAD_PATH.unshift(File.join(gstreamer_base, "test"))
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.0
4
+ version: 3.4.5
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: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2021-07-07 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.0
19
+ version: 3.4.5
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.0
26
+ version: 3.4.5
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.1.0.pre1
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
- }