polly-ffmpeg 0.1.3 → 0.1.5
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/ffmpeg.gemspec +1 -1
- data/lib/ffmpeg.rb +3 -3
- metadata +1 -1
data/ffmpeg.gemspec
CHANGED
data/lib/ffmpeg.rb
CHANGED
@@ -52,15 +52,15 @@ module FFMpeg
|
|
52
52
|
# Explicitly set ffmpeg path
|
53
53
|
#
|
54
54
|
def ffmpeg_path(path)
|
55
|
-
|
55
|
+
@@ffmpeg_path = path
|
56
56
|
end
|
57
57
|
|
58
58
|
#
|
59
59
|
# Ru§ns ffmpeg
|
60
60
|
#
|
61
61
|
def run
|
62
|
-
|
63
|
-
execute_command path
|
62
|
+
unless (path = @@ffmpeg_path ? @@ffmpeg_path : locate_ffmpeg).empty?
|
63
|
+
execute_command FFMpegCommand.command(path)
|
64
64
|
else
|
65
65
|
$stderr.puts "Couldn't locate ffmpeg, try to specify an explicit path
|
66
66
|
with the ffmpeg_path(path) method"
|