gstreamer 0.90.8 → 0.90.9

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.
data/ChangeLog CHANGED
@@ -1,3 +1,14 @@
1
+ 2011-03-07 Vincent Carmona
2
+
3
+ * ext/gstreamer/rbgstregistry.c: add update class method.
4
+
5
+ 2011-03-04 Vincent Carmona
6
+
7
+ * ext/gstreamer/rbgst-install-plugins.c: remove unused variable.
8
+ * ext/gstreamer/rbgst-message.c: change Gst::MissingMessage superclass
9
+ GstMessage -> GstMessageElement.
10
+ * sample/install-plugins.rb: added.
11
+
1
12
  2011-03-04 Kouhei Sutou <kou@cozmixng.org>
2
13
 
3
14
  * ext/gstreamer/rbgst-install-plugins.c (return_table): remove
@@ -165,7 +165,6 @@ void
165
165
  Init_gst_install_plugins(void)
166
166
  {
167
167
  mGstInstallPlugins = rb_define_module_under(mGst, "InstallPlugins");
168
- rb_iv_set(mGstInstallPlugins, "async_blocks", rb_ary_new());
169
168
 
170
169
  rb_cGstInstallPluginsReturn = G_DEF_CLASS(GST_TYPE_INSTALL_PLUGINS_RETURN,
171
170
  "InstallPluginsReturn", mGst);
@@ -745,7 +745,7 @@ Init_gst_message(void)
745
745
  element_initialize, 2);
746
746
  #ifdef HAVE_GST_PBUTILS
747
747
  rb_cGstMissingMessage =
748
- rb_define_class_under(mGst, "MissingMessage", rb_cGstMessage);
748
+ rb_define_class_under(mGst, "MissingMessage", rb_cGstMessageElement);
749
749
  rb_define_method(rb_cGstMissingMessage, "installer_detail",
750
750
  missing_message_get_installer_detail, 0);
751
751
  rb_define_method(rb_cGstMissingMessage, "description",
@@ -30,6 +30,12 @@ rb_gst_registry_get_default(VALUE self)
30
30
  return RGST_REGISTRY_NEW(gst_registry_get_default());
31
31
  }
32
32
 
33
+ static VALUE
34
+ rb_gst_update_registry(VALUE self)
35
+ {
36
+ return CBOOL2RVAL(gst_update_registry());
37
+ }
38
+
33
39
  /*
34
40
  * Method: plugins
35
41
  *
@@ -263,6 +269,7 @@ Init_gst_registry (void)
263
269
  VALUE c = G_DEF_CLASS (GST_TYPE_REGISTRY, "Registry", mGst);
264
270
 
265
271
  rb_define_singleton_method(c, "default", rb_gst_registry_get_default, 0);
272
+ rb_define_singleton_method(c, "update", rb_gst_update_registry, 0);
266
273
 
267
274
  rb_define_method(c, "plugins", rb_gst_registry_get_plugins, 0);
268
275
  rb_define_method(c, "each_plugin", rb_gst_registry_each_plugin, 0);
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env ruby
2
+ # encoding: UTF-8
3
+
4
+ require 'gtk2'
5
+ require 'gst'
6
+
7
+ def usage
8
+ $stderr.puts "Usage: #{$0} uri"
9
+ exit 1
10
+ end
11
+
12
+ usage unless ARGV.length==1
13
+
14
+ playbin=Gst::ElementFactory.make('playbin')
15
+ playbin.ready
16
+ playbin.bus.add_watch {|bus, message|
17
+ case message
18
+ when Gst::MessageError
19
+ $stderr.puts "ERROR: "+message.parse.to_s
20
+ when Gst::MissingMessage
21
+ puts "Installer detail: "+message.installer_detail.to_s
22
+ if Gst::InstallPlugins.supported?
23
+ context=Gst::InstallPluginsContext.new
24
+ Gst::InstallPlugins.async([message.installer_detail], context){|ret| p ret}
25
+ else
26
+ $stderr.puts "Plugins installation is not supported."
27
+ end
28
+ end
29
+ true
30
+ }
31
+ playbin.uri=ARGV[0]
32
+ playbin.play
33
+
34
+ label=Gtk::Label.new(ARGV[0])
35
+ window=Gtk::Window.new
36
+ window.add(label)
37
+ window.show_all
38
+ window.signal_connect('delete-event'){playbin.stop; Gtk.main_quit}
39
+
40
+ Gtk.main
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gstreamer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 359
5
- prerelease: false
4
+ hash: 357
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 8
10
- version: 0.90.8
9
+ - 9
10
+ version: 0.90.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-04 00:00:00 +09:00
19
- default_executable:
18
+ date: 2011-06-11 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: glib2
@@ -26,12 +25,12 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 359
28
+ hash: 357
30
29
  segments:
31
30
  - 0
32
31
  - 90
33
- - 8
34
- version: 0.90.8
32
+ - 9
33
+ version: 0.90.9
35
34
  type: :runtime
36
35
  version_requirements: *id001
37
36
  description: Ruby/GStreamer is a Ruby binding for GStreamer.
@@ -96,6 +95,7 @@ files:
96
95
  - ext/gstreamer/rbgst-value.c
97
96
  - sample/media-type.rb
98
97
  - sample/audio-player.rb
98
+ - sample/install-plugins.rb
99
99
  - sample/xml-player.rb
100
100
  - sample/gst-inspect.rb
101
101
  - sample/video-player.rb
@@ -126,7 +126,6 @@ files:
126
126
  - test/test_bin.rb
127
127
  - test/test_element.rb
128
128
  - test/test_static_pad_template.rb
129
- has_rdoc: true
130
129
  homepage: http://ruby-gnome2.sourceforge.jp/
131
130
  licenses: []
132
131
 
@@ -158,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
157
  requirements: []
159
158
 
160
159
  rubyforge_project:
161
- rubygems_version: 1.3.7
160
+ rubygems_version: 1.7.2
162
161
  signing_key:
163
162
  specification_version: 3
164
163
  summary: Ruby/GStreamer is a Ruby binding for GStreamer.