[#766] Fix the change of speed when quality changes
authorGaëtan Rizio <gaetan+git@rizio.fr>
Sun, 8 Jul 2018 11:08:35 +0000 (13:08 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 9 Jul 2018 12:27:12 +0000 (14:27 +0200)
commit8244e18719e10ab1a376506ee30f941e5725e8ed
tree500090fa6a8e111f28e9d648e8fac860572bd0da
parent81858b84d35a9394bae973f755c975c9658d561c
[#766] Fix the change of speed when quality changes

When changing the `playbackRate` of the video then changing the quality,
the `playbackRate` returned to its initial value (1).

The reason behind it is that the callback was not called when change
of the quality was done if there was no error.

This commit does the following:

* Ensure the callback (`done`) is called after changing the quality
client/src/assets/player/peertube-videojs-plugin.ts