gstreamer 3.0.1 → 3.0.2

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
  SHA1:
3
- metadata.gz: b499e90c3cc5c02c02a9e6303d0bb7a71b18881f
4
- data.tar.gz: baa3fc41a3d66066f664ddbf4e05ed6dd29d6dfa
3
+ metadata.gz: 06072c9fc949025bcdb456b765271e88e061fc59
4
+ data.tar.gz: 94ace732810521ea1f00f9afd9c56cda10d14c36
5
5
  SHA512:
6
- metadata.gz: 7a84a2980fefcf46b24a40b8713743f2186ba8ccf100a511601f03bb75ab72d9eb1e4e355697bab690240598af14ec74b6cff317d9495376d0c040e70ef7dff4
7
- data.tar.gz: 1afda5ac57db59fb4949b24cf98a9c29785614fa80ce1a6f17abd1451d462ff6e4362c7e3a5ed679091abf60cd25e112d85cef44884cb8902d3dc2a25ada4c6f
6
+ metadata.gz: b824e1afb0dd8736f94af3c391525713c657af724ed8a10d92c29ac0132c2e962ded8a469d845435f47dd9664144a8cbba4e5d8c837937165521ed6f8363ff1c
7
+ data.tar.gz: af514d791bb1aaa6af409c788bf9c93903293f2bc687084a138e0873372184e27c271acb7c350f197175368a9f38db91c18e5cd9dda0e2b8886295cb6bc19121
data/lib/gst.rb CHANGED
@@ -70,6 +70,7 @@ module Gst
70
70
  require "gst/plugin-feature"
71
71
  require "gst/registry"
72
72
  require "gst/structure"
73
+ require "gst/type-find-factory"
73
74
  init_base
74
75
  init_controller
75
76
  end
@@ -0,0 +1,24 @@
1
+ # Copyright (C) 2015 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
+ module Gst
18
+ class TypeFindFactory
19
+ alias_method :extensions_raw, :extensions
20
+ def extensions
21
+ extensions_raw || []
22
+ end
23
+ end
24
+ end
@@ -84,7 +84,19 @@ class Inspector
84
84
 
85
85
  def print_element(name)
86
86
  factory = Gst::ElementFactory.find(name)
87
- print_element_factory(factory, false)
87
+ if factory
88
+ print_element_factory(factory, false)
89
+ else
90
+ registry = Gst::Registry.get
91
+ type_find_factory = registry.find_feature(name, Gst::TypeFindFactory)
92
+ if type_find_factory
93
+ # TODO
94
+ else
95
+ plugin = registry.find_plugin(name)
96
+ print_plugin_info(plugin)
97
+ # TODO: print_plugin_features(plugin)
98
+ end
99
+ end
88
100
  end
89
101
 
90
102
  private
@@ -123,10 +135,7 @@ class Inspector
123
135
  "")
124
136
  end
125
137
 
126
- def print_plugin_info(name)
127
- return if name.nil?
128
- registry = Gst::Registry.get
129
- plugin = registry.find_plugin(name)
138
+ def print_plugin_info(plugin)
130
139
  return if plugin.nil?
131
140
 
132
141
  puts("Plugin Details:",
@@ -430,7 +439,7 @@ class Inspector
430
439
 
431
440
  prefix(print_names ? "#{factory.name}: " : "") do
432
441
  print_factory_details_info(factory)
433
- print_plugin_info(factory.plugin.name)
442
+ print_plugin_info(factory.plugin)
434
443
 
435
444
  print_hierarchy(element)
436
445
  print_interfaces(element)
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.0.1
4
+ version: 3.0.2
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-09-11 00:00:00.000000000 Z
11
+ date: 2015-09-13 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: 3.0.1
19
+ version: 3.0.2
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.0.1
26
+ version: 3.0.2
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: 3.0.1
33
+ version: 3.0.2
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: 3.0.1
40
+ version: 3.0.2
41
41
  description: Ruby/GStreamer is a Ruby binding for GStreamer.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -64,6 +64,7 @@ files:
64
64
  - lib/gst/plugin-feature.rb
65
65
  - lib/gst/registry.rb
66
66
  - lib/gst/structure.rb
67
+ - lib/gst/type-find-factory.rb
67
68
  - lib/gstreamer.rb
68
69
  - sample/audio-example.rb
69
70
  - sample/framestep1.rb