1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Fixed crash on loading GDNative videos.

Fixed issue with loading a resource supported by the gdnative videodecoders
that does not exist.
This commit is contained in:
Anish
2019-03-07 00:15:57 +05:30
committed by Rémi Verschelde
parent 1100d6a8f2
commit 978c2a604a

View File

@@ -355,9 +355,9 @@ RES ResourceFormatLoaderVideoStreamGDNative::load(const String &p_path, const St
if (r_error) {
*r_error = ERR_CANT_OPEN;
}
memdelete(f);
return RES();
}
memdelete(f);
VideoStreamGDNative *stream = memnew(VideoStreamGDNative);
stream->set_file(p_path);
Ref<VideoStreamGDNative> ogv_stream = Ref<VideoStreamGDNative>(stream);