diff options
author | wm4 <wm4@nowhere> | 2016-09-09 12:30:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-09 12:30:40 +0200 |
commit | e8bc5e5d837e517288ab8149fa29d3547f7a8b0e (patch) | |
tree | e0520f20d104b20bd9865b382e32620db453f841 /libmpv | |
parent | 0cfb5ea45df16999ae8a94e61d9fcb860f18713e (diff) | |
download | mpv-examples-e8bc5e5d837e517288ab8149fa29d3547f7a8b0e.tar.bz2 mpv-examples-e8bc5e5d837e517288ab8149fa29d3547f7a8b0e.tar.xz |
qml: update one use of removed API
vo_cmdline was always documented as experimental. Now it's gone.
Diffstat (limited to 'libmpv')
-rw-r--r-- | libmpv/qml/main.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpv/qml/main.qml b/libmpv/qml/main.qml index ec06790..2ec75fd 100644 --- a/libmpv/qml/main.qml +++ b/libmpv/qml/main.qml @@ -13,7 +13,7 @@ Item { MouseArea { anchors.fill: parent - onClicked: renderer.command(["loadfile", "../../../test.mkv"]) + onClicked: renderer.command(["loadfile", "test.mkv"]) } } @@ -38,7 +38,7 @@ Item { anchors.margins: 10 wrapMode: Text.WordWrap text: "QtQuick and mpv are both rendering stuff.\n - Click to load ../../../test.mkv" + Click to load test.mkv" } // Don't take these controls too seriously. They're for testing. @@ -50,9 +50,9 @@ Item { text: "Make video look like on a Smart TV" onClicked: { if (checkbox.checked) { - renderer.command(["vo_cmdline", "sharpen=5.0"]) + renderer.setProperty("sharpen", 5.0) } else { - renderer.command(["vo_cmdline", ""]) + renderer.setProperty("sharpen", 0) } } } |