Ver código fonte

Fixed Video:setSource(nil).

Alex Szpakowski 9 anos atrás
pai
commit
834bd149d5
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      src/modules/graphics/opengl/wrap_Video.lua

+ 1 - 4
src/modules/graphics/opengl/wrap_Video.lua

@@ -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)
-	else
-		self:getStream():setSync(love.video.newRemote())
+	self:getStream():setSync(source)
 	end
 	end
 end
 end