diff -ru mythtv-svn-orig/libs/libmythtv/tv_play.cpp mythtv-svn-togglestretch/libs/libmythtv/tv_play.cpp
old
|
new
|
|
195 | 195 | // Fast forward state |
196 | 196 | doing_ff_rew(0), ff_rew_index(0), speed_index(0), |
197 | 197 | // Time Stretch state |
198 | | normal_speed(1.0f), |
| 198 | normal_speed(1.0f), prev_speed(1.5f), |
199 | 199 | // Estimated framerate from recorder |
200 | 200 | frameRate(30.0f), |
201 | 201 | // Channel changing state variables |
… |
… |
|
1776 | 1776 | else if (action == "UP") |
1777 | 1777 | ChangeTimeStretch(5); |
1778 | 1778 | else if (action == "TOGGLESTRETCH") |
| 1779 | { |
| 1780 | if (normal_speed != 1.0) |
| 1781 | prev_speed = normal_speed; |
| 1782 | normal_speed = 1.0; |
| 1783 | ChangeTimeStretch(0,FALSE); |
1779 | 1784 | ClearOSD(); |
| 1785 | } |
1780 | 1786 | else |
1781 | 1787 | handled = false; |
1782 | 1788 | } |
… |
… |
|
1855 | 1861 | ChangeSpeed(-1); |
1856 | 1862 | else if (action == "TOGGLESTRETCH") |
1857 | 1863 | { |
1858 | | ChangeTimeStretch(0); // just display |
| 1864 | normal_speed = prev_speed; |
| 1865 | ChangeTimeStretch(0); |
1859 | 1866 | } |
1860 | 1867 | else if (action == "TOGGLEAUDIOSYNC") |
1861 | 1868 | ChangeAudioSync(0); // just display |
diff -ru mythtv-svn-orig/libs/libmythtv/tv_play.h mythtv-svn-togglestretch/libs/libmythtv/tv_play.h
old
|
new
|
|
333 | 333 | * or decreased to speedup or slowdown playback. |
334 | 334 | * Ignored when doing Fast Forward or Rewind. |
335 | 335 | */ |
336 | | float normal_speed; |
| 336 | float normal_speed; |
| 337 | float prev_speed; |
337 | 338 | |
338 | 339 | float frameRate; ///< Estimated framerate from recorder |
339 | 340 | |