mvlc 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvlc.rb +1 -1
- data/lib/mvlc/player/wrapper.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939e7ec0d16bd28e2531dfaff5cbc81e8c751cbb
|
4
|
+
data.tar.gz: 90d863526d598844f312d14c8fe1e93469940ace
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c9b32d5b7a5cfdd1434610a84148faa5548ae4e01564298ba2d495456fd3c0d15c611be75f467cadb991b89336a9c90b6bbe92b266c6cdd8d02038af7e86ccd
|
7
|
+
data.tar.gz: '08482fa28f8df3e522ba6e88a3c79515950158ba312e7a6f9272ab43f8a37943ce6a9119ab4d23a5e8034c21ee602e26284f2aa4ac8b9374fc10a914558f73f3'
|
data/lib/mvlc.rb
CHANGED
data/lib/mvlc/player/wrapper.rb
CHANGED
@@ -9,7 +9,7 @@ module MVLC
|
|
9
9
|
|
10
10
|
extend Forwardable
|
11
11
|
|
12
|
-
attr_reader :state, :player
|
12
|
+
attr_reader :state, :pid, :player
|
13
13
|
|
14
14
|
# @param [Hash] options
|
15
15
|
def initialize(options = {})
|
@@ -143,9 +143,12 @@ module MVLC
|
|
143
143
|
# Kill the VLC player instance
|
144
144
|
# @return [Boolean]
|
145
145
|
def kill_player
|
146
|
-
|
146
|
+
begin
|
147
|
+
@player.connection.write("quit")
|
148
|
+
rescue Errno::EBADF
|
149
|
+
end
|
147
150
|
# TODO: Process.kill not working here
|
148
|
-
`kill -9 #{@pid}`
|
151
|
+
`kill -9 #{@pid}` unless @pid.nil?
|
149
152
|
@player.server.stop
|
150
153
|
true
|
151
154
|
end
|