ffruby 0.2.1 → 0.2.2

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/README.rdoc CHANGED
@@ -22,6 +22,11 @@ Being able to reliably read the source file's metadata is very important in deci
22
22
 
23
23
  == Changes
24
24
 
25
+ === 0.2.2 (2010/11/29)
26
+
27
+ - Fix compilation with -fno-common for OS X.
28
+ - Make RDoc hack a bit safer.
29
+
25
30
  === 0.2.1 (2010/11/26)
26
31
 
27
32
  - New formats and codecs methods working on older FFmpeg versions.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/ext/ffruby/ffruby.c CHANGED
@@ -23,6 +23,8 @@
23
23
  extern void Init_ffrf();
24
24
  extern void Init_ffrs();
25
25
 
26
+ VALUE mFFruby;
27
+
26
28
  /* Returns an array of the input and output formats supported by
27
29
  * FFmpeg. This method will hopefully be expanded to return more than
28
30
  * just names in the future. */
data/ext/ffruby/ffruby.h CHANGED
@@ -25,10 +25,10 @@
25
25
  #include AVFORMAT_H_PATH
26
26
  #include AVCODEC_H_PATH
27
27
 
28
- VALUE mFFruby;
29
- VALUE cFFrubyFile;
30
- VALUE cFFrubyStream;
31
- VALUE cFFrubyVideoStream;
32
- VALUE cFFrubyAudioStream;
28
+ extern VALUE mFFruby;
29
+ extern VALUE cFFrubyFile;
30
+ extern VALUE cFFrubyStream;
31
+ extern VALUE cFFrubyVideoStream;
32
+ extern VALUE cFFrubyAudioStream;
33
33
 
34
34
  #endif
@@ -22,8 +22,12 @@
22
22
  #include <string.h>
23
23
  #include <stdio.h>
24
24
 
25
- /* Satisfy stupid RDoc. This hopefully gets optimised away. */
26
- static void rdoc() { mFFruby = rb_define_module("FFruby"); }
25
+ VALUE cFFrubyFile;
26
+
27
+ #ifdef RDOC
28
+ /* Satisfy stupid RDoc. */
29
+ static void rdoc() { mFFruby = rb_define_module("FFruby"); }
30
+ #endif
27
31
 
28
32
  static void ffrf_free(AVFormatContext *fmt)
29
33
  {
@@ -20,8 +20,14 @@
20
20
 
21
21
  #include "ffruby.h"
22
22
 
23
- /* Satisfy stupid RDoc. This hopefully gets optimised away. */
24
- static void rdoc() { mFFruby = rb_define_module("FFruby"); }
23
+ VALUE cFFrubyStream;
24
+ VALUE cFFrubyVideoStream;
25
+ VALUE cFFrubyAudioStream;
26
+
27
+ #ifdef RDOC
28
+ /* Satisfy stupid RDoc. */
29
+ static void rdoc() { mFFruby = rb_define_module("FFruby"); }
30
+ #endif
25
31
 
26
32
  static VALUE ffrs_alloc(VALUE klass)
27
33
  {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Le Cuirot
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-27 00:00:00 +00:00
18
+ date: 2010-11-29 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies: []
21
21