try fix duration fallback
This commit is contained in:
parent
9ba12bf365
commit
734ffc5758
1 changed files with 1 additions and 1 deletions
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue