aboutsummaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-xineliboutput/files/patch-c++11
blob: ca242e5d35539ea5fcadb9f6eb0519f995de6f4b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
diff -ruN vdr-xineliboutput.orig/device.c vdr-xineliboutput/device.c
--- vdr-xineliboutput.orig/device.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/device.c	2021-08-30 10:52:36.560762000 +0200
@@ -967,7 +967,7 @@
 #ifdef LOG_TRICKSPEED
       if(PictureType != NO_PICTURE && PES_HAS_PTS(buf)) {
 	int64_t pts = pes_get_pts(buf, length);
-	LOGMSG("    TrickSpeed: frame %s pts %"PRId64, picture_type_str[PictureType], pts);
+	LOGMSG("    TrickSpeed: frame %s pts %" PRId64, picture_type_str[PictureType], pts);
       }
 #endif
 
@@ -1019,11 +1019,11 @@
       if(m_TrickSpeedPts == 0) {
 	m_TrickSpeedMode |= trs_NoAudio;
 	m_TrickSpeedPts = pts;
-	LOGTRICKSPEED("    Seen video pts = %"PRId64, pts);
+	LOGTRICKSPEED("    Seen video pts = %" PRId64, pts);
       } else {
 	if(pts < m_TrickSpeedPts) {
 	  /* -> playing fast backwards */
-	  LOGTRICKSPEED("    Detected fast backward mode. last %"PRId64" now %"PRId64, 
+	  LOGTRICKSPEED("    Detected fast backward mode. last %" PRId64 " now %" PRId64,
 			m_TrickSpeedPts, pts);
 	  //if(!(m_TrickSpeedMode & trs_PTS_recalc))
 	  //  ForEach(m_clients, &cXinelibThread::Clear);
@@ -1051,7 +1051,7 @@
       if(m_TrickSpeedPts == 0)
 	m_TrickSpeedPts = pts;
 
-      LOGTRICKSPEED("    pts %"PRId64" -> %"PRId64" (diff %"PRId64")  %"PRId64"", pts, 
+      LOGTRICKSPEED("    pts %" PRId64 " -> %" PRId64 " (diff %" PRId64 ")  %" PRId64 "", pts,
 		    m_TrickSpeedPts + 40*12*90, m_TrickSpeedPts + 40*12*90 - pts,
 		    (m_TrickSpeedPts + 40*12*90)^0x80000000);
       pts = m_TrickSpeedPts = m_TrickSpeedPts + 40*12*90; /* 12 frames * 40ms -> pts units */
diff -ruN vdr-xineliboutput.orig/tools/ts.c vdr-xineliboutput/tools/ts.c
--- vdr-xineliboutput.orig/tools/ts.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/tools/ts.c	2021-08-30 10:54:49.676758000 +0200
@@ -545,7 +545,7 @@
 
 #ifdef LOG_PCR
   uint epcr = ((pkt[10] & 0x1) << 8) | pkt[11];
-  LOGPCR("ts_get_pcr: PCR: %"PRId64", EPCR: %u", pcr, epcr);
+  LOGPCR("ts_get_pcr: PCR: %" PRId64 ", EPCR: %u", pcr, epcr);
 #endif
 
   *ppcr = pcr;
diff -ruN vdr-xineliboutput.orig/xine/BluRay/decode_spuhdmv.c vdr-xineliboutput/xine/BluRay/decode_spuhdmv.c
--- vdr-xineliboutput.orig/xine/BluRay/decode_spuhdmv.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/BluRay/decode_spuhdmv.c	2021-08-30 10:50:45.900369000 +0200
@@ -925,7 +925,7 @@
 
 static void decode_segment(spuhdmv_decoder_t *this)
 {
-  XINE_HDMV_TRACE("*** new segment, pts %010"PRId64": 0x%02x (%8d bytes)\n",
+  XINE_HDMV_TRACE("*** new segment, pts %010" PRId64 ": 0x%02x (%8d bytes)\n",
                   this->pts, this->buf->segment_type, this->buf->segment_len);
 
   switch (segbuf_segment_type(this->buf)) {
diff -ruN vdr-xineliboutput.orig/xine/BluRay/input_bluray.c vdr-xineliboutput/xine/BluRay/input_bluray.c
--- vdr-xineliboutput.orig/xine/BluRay/input_bluray.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/BluRay/input_bluray.c	2021-08-30 10:54:23.289681000 +0200
@@ -568,7 +568,7 @@
 
 #ifdef LOG
   int ms = this->title_info->duration / INT64_C(90);
-  lprintf("Opened title %d. Length %"PRId64" bytes / %02d:%02d:%02d.%03d\n",
+  lprintf("Opened title %d. Length %" PRId64 " bytes / %02d:%02d:%02d.%03d\n",
           this->current_title_idx, bd_get_title_size(this->bdh),
           ms / 3600000, (ms % 3600000 / 60000), (ms % 60000) / 1000, ms % 1000);
 #endif
diff -ruN vdr-xineliboutput.orig/xine/adjustable_scr.c vdr-xineliboutput/xine/adjustable_scr.c
--- vdr-xineliboutput.orig/xine/adjustable_scr.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/adjustable_scr.c	2021-08-30 10:50:17.820989000 +0200
@@ -274,13 +274,13 @@
       set_pivot( this );
       this->buffering = 1;
       this->buffering_start_time = time_ms();
-      LOGMSG("start buffering at %"PRId64, this->cur_pts);
+      LOGMSG("start buffering at %" PRId64, this->cur_pts);
     }
   } else {
     if (this->buffering) {
       set_pivot( this );
       this->buffering = 0;
-      LOGMSG("stop buffering at %"PRId64" (buffering took %"PRIu64" ms)",
+      LOGMSG("stop buffering at %" PRId64 " (buffering took %" PRIu64 " ms)",
 	     this->cur_pts, elapsed(this->buffering_start_time));
     }
   }
diff -ruN vdr-xineliboutput.orig/xine/demux_xvdr.c vdr-xineliboutput/xine/demux_xvdr.c
--- vdr-xineliboutput.orig/xine/demux_xvdr.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/demux_xvdr.c	2021-08-30 10:51:33.112992000 +0200
@@ -227,7 +227,7 @@
     int still_mode  = (int)this->stream->metronom->get_option(this->stream->metronom, XVDR_METRONOM_STILL_MODE);
     int trick_speed = (int)this->stream->metronom->get_option(this->stream->metronom, XVDR_METRONOM_TRICK_SPEED);
     if (still_mode > 0 || trick_speed > 0) {
-      LOGMSG("Skipping new pts %"PRId64" (still=%d trickspeed=%d)", buf->pts, still_mode, trick_speed);
+      LOGMSG("Skipping new pts %" PRId64 " (still=%d trickspeed=%d)", buf->pts, still_mode, trick_speed);
       return;
     }
   }
@@ -239,7 +239,7 @@
 
     if (this->send_newpts || (this->last_pts[video] && abs(diff)>WRAP_THRESHOLD)) {
 
-      LOGVERBOSE("New PTS: %"PRId64" (%s)", buf->pts, video ? "VIDEO" : "AUDIO");
+      LOGVERBOSE("New PTS: %" PRId64 " (%s)", buf->pts, video ? "VIDEO" : "AUDIO");
 
       if (this->buf_flag_seek) {
         _x_demux_control_newpts(this->stream, buf->pts, BUF_FLAG_SEEK);
diff -ruN vdr-xineliboutput.orig/xine/vo_lastpts.c vdr-xineliboutput/xine/vo_lastpts.c
--- vdr-xineliboutput.orig/xine/vo_lastpts.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/vo_lastpts.c	2021-08-30 10:55:43.802524000 +0200
@@ -83,7 +83,7 @@
     if (this->xvdr_metronom) {
       ASSERT_RET(this->xvdr_metronom->set_option, return);
 
-      LOGVERBOSE("last pts %"PRId64, vo_img->pts);
+      LOGVERBOSE("last pts %" PRId64, vo_img->pts);
 
       this->xvdr_metronom->set_option(this->xvdr_metronom, XVDR_METRONOM_LAST_VO_PTS, vo_img->pts);
     }
diff -ruN vdr-xineliboutput.orig/xine/xvdr_metronom.c vdr-xineliboutput/xine/xvdr_metronom.c
--- vdr-xineliboutput.orig/xine/xvdr_metronom.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine/xvdr_metronom.c	2021-08-30 10:57:30.121628000 +0200
@@ -37,11 +37,11 @@
     int64_t dv = this->vid_pts - this->disc_pts;
     int64_t d_min = min64(da, dv);
     LOGMSG("  stream A-V diff %d ms", (int)(this->vid_pts - this->aud_pts)/90);
-    LOGMSG("  reported stream start at pts %"PRId64, this->disc_pts);
-    LOGMSG("  output fifo end at: audio %"PRId64" video %"PRId64, this->aud_pts, this->vid_pts);
-    LOGMSG("  dA %"PRId64" dV %"PRId64, da, dv);
+    LOGMSG("  reported stream start at pts %" PRId64, this->disc_pts);
+    LOGMSG("  output fifo end at: audio %" PRId64 " video %" PRId64, this->aud_pts, this->vid_pts);
+    LOGMSG("  dA %" PRId64 " dV %" PRId64, da, dv);
     if (d_min < 0 && d_min > -10*90000) {
-      LOGMSG("  *** output is late %"PRId64" ticks (%"PRId64" ms) ***", d_min, -d_min/90);
+      LOGMSG("  *** output is late %" PRId64 " ticks (%" PRId64 " ms) ***", d_min, -d_min/90);
       this->scr->jump(this->scr, d_min);
     }
     this->buffering = 0;
diff -ruN vdr-xineliboutput.orig/xine_input_vdr.c vdr-xineliboutput/xine_input_vdr.c
--- vdr-xineliboutput.orig/xine_input_vdr.c	2012-05-11 09:37:27.000000000 +0200
+++ vdr-xineliboutput/xine_input_vdr.c	2021-08-30 10:56:35.415173000 +0200
@@ -3963,7 +3963,7 @@
   }
 
   if (this->discard_index != this->curpos) {
-    LOGMSG("wait_stream_sync: discard_index %"PRIu64" != curpos %"PRIu64" ! (diff %"PRId64")",
+    LOGMSG("wait_stream_sync: discard_index %"PRIu64" != curpos %"PRIu64" ! (diff %" PRId64 ")",
            this->discard_index, this->curpos, (int64_t)(this->discard_index - this->curpos));
   }
 
@@ -3983,7 +3983,7 @@
     errno = EINTR;
   }
   else if (counter <= 0) {
-    LOGMSG("wait_stream_sync: Timed out ! diff %"PRId64,
+    LOGMSG("wait_stream_sync: Timed out ! diff %" PRId64,
            (int64_t)(this->discard_index - this->discard_index_ds));
     errno = EAGAIN;
   }