Fix_control_problem_with_mpv-0.30.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Index: src/mpvprocess.cpp
  2. ===================================================================
  3. --- src/mpvprocess.cpp (revision 9231)
  4. +++ src/mpvprocess.cpp (revision 9232)
  5. @@ -122,7 +122,7 @@
  6. void MPVProcess::initializeRX() {
  7. #ifdef CUSTOM_STATUS
  8. - rx_av.setPattern("^STATUS: ([0-9\\.-]+) / ([0-9\\.-]+) P: (yes|no) B: (yes|no) I: (yes|no) VB: ([0-9\\.-]+) AB: ([0-9\\.-]+)");
  9. + rx_av.setPattern("STATUS: ([0-9\\.-]+) / ([0-9\\.-]+) P: (yes|no) B: (yes|no) I: (yes|no) VB: ([0-9\\.-]+) AB: ([0-9\\.-]+)");
  10. #else
  11. rx_av.setPattern("^(\\((.*)\\) |)(AV|V|A): ([0-9]+):([0-9]+):([0-9]+) / ([0-9]+):([0-9]+):([0-9]+)"); //AV: 00:02:15 / 00:09:56
  12. #endif
  13. @@ -197,7 +197,7 @@
  14. static double last_sec = -1;
  15. // Parse A: V: line
  16. - //qDebug("MPVProcess::parseLine: %s", line.toUtf8().data());
  17. + //qDebug() << "MPVProcess::parseLine:" << line;
  18. if (rx_av.indexIn(line) > -1) {
  19. #ifdef CUSTOM_STATUS
  20. double sec = rx_av.cap(1).toDouble();
  21. Index: src/mpvoptions.cpp
  22. ===================================================================
  23. --- src/mpvoptions.cpp (revision 9233)
  24. +++ src/mpvoptions.cpp (revision 9234)
  25. @@ -63,7 +63,8 @@
  26. arg << "--term-playing-msg="
  27. "MPV_VERSION=${=mpv-version:}\n"
  28. "INFO_VIDEO_WIDTH=${=width}\nINFO_VIDEO_HEIGHT=${=height}\n"
  29. - "INFO_VIDEO_ASPECT=${=video-aspect}\n"
  30. +// "INFO_VIDEO_ASPECT=${=video-aspect}\n" // old
  31. + "INFO_VIDEO_ASPECT=${=video-params/aspect}\n"
  32. // "INFO_VIDEO_DSIZE=${=dwidth}x${=dheight}\n"
  33. "INFO_VIDEO_FPS=${=container-fps:${=fps}}\n"
  34. // "INFO_VIDEO_BITRATE=${=video-bitrate}\n"