mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed Video:setSource(nil).
This commit is contained in:
@@ -34,10 +34,7 @@ end
|
|||||||
|
|
||||||
function Video:setSource(source)
|
function Video:setSource(source)
|
||||||
self:_setSource(source)
|
self:_setSource(source)
|
||||||
if source then
|
self:getStream():setSync(source)
|
||||||
self:getStream():setSync(source)
|
|
||||||
else
|
|
||||||
self:getStream():setSync(love.video.newRemote())
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user