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: case 1:
assert (data.name == "duration"); assert (data.name == "duration");
if (data.format == Mpv.Format.NONE) { if (data.format == Mpv.Format.NONE) {
this.duration = 0.0; // this.duration = 0.0; i think this prevents the fallback below from working
} else { } else {
this.duration = data.parse_double (); this.duration = data.parse_double ();
} }