Gtk4: Gtk.Video can't handle mkv files
Steps to reproduce
EDIT: It seems like this issue is only present when having hardware acceleration. Without it, the performance is horrible but stable.
- Have a simple
Gtk.Video
in an application - Pass an
mkv
file to it - It either crashes (instantly or on mouse hover) or displays distorted video
import gi, time
gi.require_version('Gtk', '4.0')
from gi.repository import Gtk
def on_activate(app):
window = Gtk.ApplicationWindow(application=app)
videoPipe = Gtk.Video.new()
window.set_child(videoPipe)
window.present()
videoPipe.set_filename("/home/daniel/Videos/Blues Brothers 2000.mkv")
app = Gtk.Application(application_id='com.example.GtkApplication')
app.connect('activate', on_activate)
app.run(None)
Version information
- GTK: 4.8.3
- OS: Fedora 37, latest
Warnings
malloc(): corrupted top size
Aborted (core dumped)
or
Segmentation fault (core dumped)
Backtrace
Edited by Dániel Kolozsi