vcs_ruby 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. data/lib/libAV/libav.rb +6 -6
  2. metadata +1 -1
data/lib/libAV/libav.rb CHANGED
@@ -148,21 +148,21 @@ private
148
148
  return parsed
149
149
  end
150
150
 
151
- def parse_audio_streams
151
+ def parse_video_streams
152
152
  parsed = false
153
- @audio_streams = []
153
+ @video_streams = []
154
154
  @cache.scan(/\[STREAM\](.*?)\[\/STREAM\]/m) do |stream|
155
155
  info = get_hash(stream[0])
156
- if info['codec_type'] == 'audio'
157
- @audio_streams << LibAVAudioStream.new(info)
156
+ if info['codec_type'] == 'video'
157
+ @video_streams << LibAVVideoStream.new(info)
158
158
  parsed = true
159
159
  end
160
160
  end
161
161
  unless parsed
162
162
  @cache.scan(/\[streams.stream.\d\](.*?)\n\n/m) do |stream|
163
163
  info = get_hash(stream[0])
164
- if info['codec_type'] == 'audio'
165
- @audio_streams << LibAVAudioStream.new(info)
164
+ if info['codec_type'] == 'vidio'
165
+ @vidio_streams << LibAVVidioStream.new(info)
166
166
  parsed = true
167
167
  end
168
168
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcs_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: