mirror of
https://github.com/brunoherbelin/vimix.git
synced 2026-06-16 04:27:23 +02:00
BugFix Remove the disabling of GPU decoding during discovery; this caused videos to be randomly loaded without GPU support.
This commit is contained in:
+3
-2
@@ -152,7 +152,8 @@ MediaInfo MediaPlayer::UriDiscoverer(const std::string &uri)
|
||||
}
|
||||
else {
|
||||
// disable GPU decoding plugins to avoid conflicts during discovery
|
||||
GstToolkit::enable_gpu_decoding_plugins(false);
|
||||
// GstToolkit::enable_gpu_decoding_plugins(false);
|
||||
//// TODO : implement this properly as this disables GPU decoding globally
|
||||
|
||||
GstDiscovererInfo *info = NULL;
|
||||
info = gst_discoverer_discover_uri (discoverer, uri.c_str(), &err);
|
||||
@@ -261,7 +262,7 @@ MediaInfo MediaPlayer::UriDiscoverer(const std::string &uri)
|
||||
g_object_unref( discoverer );
|
||||
|
||||
// restore GPU decoding plugins state
|
||||
GstToolkit::enable_gpu_decoding_plugins(Settings::application.render.gpu_decoding);
|
||||
// GstToolkit::enable_gpu_decoding_plugins(Settings::application.render.gpu_decoding);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user