BugFix Prevents failure of hardware decoding of images.

This commit is contained in:
Bruno Herbelin
2023-06-07 18:03:48 +02:00
parent 6989cd4d40
commit 3e7b24a3de

View File

@@ -358,7 +358,7 @@ void MediaPlayer::execute_open()
}
// setup software decode
if (force_software_decoding_) {
if (force_software_decoding_ || media_.isimage) {
g_object_set (G_OBJECT (gst_bin_get_by_name (GST_BIN (pipeline_), "decoder")), "force-sw-decoders", true, NULL);
}