Remove the default source type (resolves #1082)

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2016-03-08 11:44:36 +01:00
parent 34b6aa608b
commit dc7b1fb049
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ int w_newSource(lua_State *L)
Source::Type stype = Source::TYPE_STREAM;
const char *stypestr = lua_isnoneornil(L, 2) ? 0 : lua_tostring(L, 2);
const char *stypestr = luaL_checkstring(L, 2);
if (stypestr && !Source::getConstant(stypestr, stype))
return luaL_error(L, "Invalid source type: %s", stypestr);
@@ -359,7 +359,7 @@ function love.graphics.newVideo(file, loadaudio)
local source, success
if loadaudio ~= false then
success, source = pcall(love.audio.newSource, video:getStream():getFilename())
success, source = pcall(love.audio.newSource, video:getStream():getFilename(), "stream")
end
if success then
video:setSource(source)