mpc-hc icon indicating copy to clipboard operation
mpc-hc copied to clipboard

Changes in Output settings take effect immediately

Open nparkanyi opened this issue 8 years ago • 7 comments

Updates the output settings page to automatically reload the current file at the same seek position after changing the video, audio, or subtitle renderers so the changes are visible immediately.

nparkanyi avatar Aug 03 '17 04:08 nparkanyi

Please test with a live radio stream, or a raw audio file. In those cases duration is unknown, and seeking to last position may fail. Better restart from beginning if duration is unknown.

clsid2 avatar Aug 07 '17 13:08 clsid2

I think forcefully resetting playback is little bit too much. Restarting playback can be done with single hotkey (CTRL+E by default) and user can do it once he finish changing settings. I think it would be annoying for me if playback reset occur automatically, especially that some files/steam can't be recovered in the same position.

Also this patch is not complete, because if we want to reset playback there are many more options that should trigger this. Every other option on output page, subtitle renderer setting, all internal/external filters settings. Basically every change that can affect Directshow graph should reset playback with your approach. I don't like it. But if everyone thinks it is best we can think about merging this change.

kasper93 avatar Aug 15 '17 21:08 kasper93

The VMR and EVR output settings already take effect immediately, same with the subtitle settings, so in a sense it's already a bit inconsistent. To me, it seems a bit surprising that changing the renderer, then clicking 'Apply' only applies the change on the next file loaded. If you, say, want to compare the same image with different renderer backends, this is cumbersome because you have to change the setting, close the settings, restart the file, and seek to the same point.

nparkanyi avatar Aug 16 '17 02:08 nparkanyi

I think it would be annoying for me if playback reset occur automatically, especially that some files/steam can't be recovered in the same position.

I don't think users would change Output settings often in normal playback, so it's not that annoying. If someone tinkers with Output settings, they may try to see how different renderers behave, and having to restart playback for that every time may be actually more annoying. Maybe, if it's not too hard to implement, we could have a checkbox to disable/enable this behavior on the Output settings page.

l4n9th4n9 avatar Aug 16 '17 10:08 l4n9th4n9

An extra option for this doesn't make sense. We should decide if we want to change the default behavior or not. Perhaps we should show a warning message an if the user confirms then restart playback or something like that.

XhmikosR avatar Aug 16 '17 10:08 XhmikosR

I wonder what would be a media stream that breaks this behaviour? As this is implemented, if the media has no duration, it simply "restarts" playback from the beginning, but generally if there is no duration, it's because it's a live stream (like internet radio), so even though we "restart" the playback, it's just continuing to stream it from the same position.

nparkanyi avatar Aug 22 '17 01:08 nparkanyi

Some streams that have duration are still not seekable. Anyway we can go with those changes, I still think we shouldn't restart playback, but I don't mind it really. I will take closer look soon.

kasper93 avatar Oct 02 '17 18:10 kasper93