mediainfo-native 0.1.7 → 0.1.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e190330ee254be3a21746020e0aedf98c76d08a
|
4
|
+
data.tar.gz: 39172b5a6cefc8e2523bd5060fefecbdfa8d9fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3c93fea8e2456e20132a12a6c0eb84bfbbe1b8ba7a5929712a349e0d5ac3c0a6f0e5afce9a782a09da5122afaae9c0ebd9d51f3e64e6d00e2276f8409df3fb1
|
7
|
+
data.tar.gz: fa4e1b8359274389126d57fdd1cc47336018d90aef28065854a2c94e47f1f3fd1790f29548691f0832a601cea32fb90f60cd67e807318528ca699d2dd6922e5e
|
@@ -30,9 +30,22 @@ extern "C"
|
|
30
30
|
delete ((MediaInfoWrapper*) ptr);
|
31
31
|
}
|
32
32
|
|
33
|
-
static VALUE miw_new(VALUE klass)
|
33
|
+
static VALUE miw_new(VALUE klass, VALUE args)
|
34
34
|
{
|
35
|
-
|
35
|
+
if(RARRAY_LEN(args) > 1)
|
36
|
+
rb_raise(rb_eArgError, "wrong number of arguments");
|
37
|
+
|
38
|
+
bool ignore_continuous_file_names = true;
|
39
|
+
|
40
|
+
if(RARRAY_LEN(args) == 1) {
|
41
|
+
VALUE opts = rb_ary_entry(args, 0);
|
42
|
+
Check_Type(opts, T_HASH);
|
43
|
+
|
44
|
+
VALUE vicfn = rb_hash_aref(opts, ID2SYM(rb_intern("ignore_continuous_file_names")));
|
45
|
+
ignore_continuous_file_names = TYPE(vicfn) == T_TRUE;
|
46
|
+
}
|
47
|
+
|
48
|
+
MediaInfoWrapper* miw = new MediaInfoWrapper(ignore_continuous_file_names);
|
36
49
|
return Data_Wrap_Struct(klass, 0, miw_free, miw);
|
37
50
|
}
|
38
51
|
|
@@ -111,7 +124,7 @@ void Init_MediaInfoWrapper(VALUE mMediaInfoNative)
|
|
111
124
|
{
|
112
125
|
VALUE cMediaInfo = rb_define_class_under(mMediaInfoNative, "MediaInfo", rb_cObject);
|
113
126
|
|
114
|
-
rb_define_singleton_method(cMediaInfo, "new", (RUBYFUNC) miw_new,
|
127
|
+
rb_define_singleton_method(cMediaInfo, "new", (RUBYFUNC) miw_new, -2);
|
115
128
|
|
116
129
|
rb_define_method(cMediaInfo, "close", (RUBYFUNC) miw_close, 0);
|
117
130
|
rb_define_method(cMediaInfo, "open", (RUBYFUNC) miw_open, 1);
|
@@ -152,12 +165,13 @@ MediaInfoDLL::stream_t convertToMediaInfoStreamType(unsigned int type)
|
|
152
165
|
return convertToMediaInfoStreamType((StreamType) type);
|
153
166
|
}
|
154
167
|
|
155
|
-
MediaInfoWrapper::MediaInfoWrapper()
|
168
|
+
MediaInfoWrapper::MediaInfoWrapper(bool ignore_continuous_file_names)
|
156
169
|
: file_opened(false)
|
157
170
|
{
|
158
171
|
mi = new MediaInfoDLL::MediaInfo();
|
159
172
|
mi->Option("Inform", "XML");
|
160
173
|
mi->Option("Complete", "1");
|
174
|
+
mi->Option("File_TestContinuousFileNames", ignore_continuous_file_names ? "0" : "1");
|
161
175
|
}
|
162
176
|
|
163
177
|
MediaInfoWrapper::~MediaInfoWrapper()
|
@@ -44,6 +44,7 @@ module MediaInfoNative
|
|
44
44
|
mediainfo_attr_reader :format_settings_reframes, 'Format_Settings_ReFrames'
|
45
45
|
mediainfo_attr_reader :format_settings_matrix, 'Format_Settings_Matrix'
|
46
46
|
mediainfo_attr_reader :format_settings_gop, 'Format_Settings_GOP'
|
47
|
+
mediainfo_attr_reader :format_commercial, 'Format_Commercial'
|
47
48
|
|
48
49
|
mediainfo_attr_reader :colour_primaries, 'colour_primaries'
|
49
50
|
alias_method :color_primaries, :colour_primaries
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mediainfo-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- FlavourSys Technology GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|