[neon/extras/phonon-backend-vlc/Neon/release] debian/patches: switch patch to fprintf to get more reliable output

Harald Sitter null at kde.org
Fri Mar 19 16:40:33 GMT 2021


Git commit fe2a9f9584a0738a6f6a89733b3b534340c1b7d3 by Harald Sitter.
Committed on 19/03/2021 at 16:40.
Pushed by sitter into branch 'Neon/release'.

switch patch to fprintf to get more reliable output

M  +16   -10   debian/patches/0001-line-calc-variants.patch

https://invent.kde.org/neon/extras/phonon-backend-vlc/commit/fe2a9f9584a0738a6f6a89733b3b534340c1b7d3

diff --git a/debian/patches/0001-line-calc-variants.patch b/debian/patches/0001-line-calc-variants.patch
index b5f7c9b..1ae6b58 100644
--- a/debian/patches/0001-line-calc-variants.patch
+++ b/debian/patches/0001-line-calc-variants.patch
@@ -1,13 +1,13 @@
-From 1e743892d8e34bce9badf2b4994b84bb8579d2b2 Mon Sep 17 00:00:00 2001
+From fe1902d6063c9fafba93d982560bd4d7d9589f46 Mon Sep 17 00:00:00 2001
 From: Harald Sitter <sitter at kde.org>
 Date: Fri, 19 Mar 2021 16:06:19 +0100
 Subject: [PATCH] line calc variants
 
 temporary patch to get some debugging data
 ---
- src/video/videomemorystream.cpp | 10 +++++-
- src/video/videowidget.cpp       | 63 +++++++++++++++++++++++++++++----
- 2 files changed, 66 insertions(+), 7 deletions(-)
+ src/video/videomemorystream.cpp | 10 ++++-
+ src/video/videowidget.cpp       | 69 ++++++++++++++++++++++++++++++---
+ 2 files changed, 72 insertions(+), 7 deletions(-)
 
 diff --git a/src/video/videomemorystream.cpp b/src/video/videomemorystream.cpp
 index 6886bcf..d6426f2 100644
@@ -31,7 +31,7 @@ index 6886bcf..d6426f2 100644
  
  void VideoMemoryStream::formatCleanUpCallbackInternal(void *opaque)
 diff --git a/src/video/videowidget.cpp b/src/video/videowidget.cpp
-index bc03f8e..0719a3a 100644
+index bc03f8e..2a77633 100644
 --- a/src/video/videowidget.cpp
 +++ b/src/video/videowidget.cpp
 @@ -26,6 +26,7 @@
@@ -42,17 +42,17 @@ index bc03f8e..0719a3a 100644
  
  #include "utils/debug.h"
  #include "mediaobject.h"
-@@ -90,13 +91,63 @@ private:
+@@ -90,13 +91,69 @@ private:
                                      unsigned *pitches,
                                      unsigned *lines)
      {
-+        qDebug() << "--------" << *width << *height <<*chroma;
++        fprintf(stderr, "-------- %d %d\n", *width, *height);
 +        QImage rgb32(*width, *height, QImage::Format_RGB32);
 +
-+        qDebug() << "rgb32" << rgb32.bytesPerLine() << rgb32.sizeInBytes() / rgb32.bytesPerLine() << rgb32.sizeInBytes();
++        fprintf(stderr, "rgb32 %d %lld %lld\n", rgb32.bytesPerLine(), rgb32.sizeInBytes() / rgb32.bytesPerLine(), rgb32.sizeInBytes());
 +
 +        const auto b = setPitchAndLines(vlc_fourcc_GetChromaDescription(VLC_CODEC_RGB32), *width, *height, pitches, lines);
-+        qDebug() << "V rgb32" << *pitches << *lines << b;
++        fprintf(stderr, "V rgb32 %d %d %d\n", *pitches, *lines, b);
 +
 +        // Fairly unclear what the last two arguments do, they same to make no diff for the planes though, so I guess they can be anything in our case.
 +        auto picture = picture_New(VLC_CODEC_RGB32, *width, *height, 0, 0);
@@ -61,7 +61,13 @@ index bc03f8e..0719a3a 100644
 +            pitches[i] = plane.i_pitch;
 +            lines[i] = plane.i_lines;
 +
-+            qDebug() << ":: V rgb32 [" << i << "]" << plane.i_pitch << plane.i_lines << plane.i_visible_pitch <<  plane.i_visible_lines << plane.i_pixel_pitch;
++            fprintf(stderr,
++                    ":: V rgb32 [%d] pitch %d lines %d vpitch %d vlines %d\n",
++                    plane.i_pitch,
++                    plane.i_lines,
++                    plane.i_visible_pitch,
++                    plane.i_visible_lines,
++                    plane.i_pixel_pitch);
 +        }
 +
          qstrcpy(chroma, "RV32");


More information about the Neon-commits mailing list