try fix duration fallback

This commit is contained in:
Erica Z 2024-10-20 14:45:37 +02:00
parent 9ba12bf365
commit 734ffc5758

View file

@ -93,7 +93,7 @@ public class Playbin : GLib.Object {
case 1:
assert (data.name == "duration");
if (data.format == Mpv.Format.NONE) {
this.duration = 0.0;
// this.duration = 0.0; i think this prevents the fallback below from working
} else {
this.duration = data.parse_double ();
}