summaryrefslogtreecommitdiffstats
path: root/abs/not_built/core/mythstream/mythstream.0.24.patch
blob: d518c9761a6154ac7ad31bdbe652a8903006144b (plain)
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
diff -ruaN mythstream_mythtv-r21640.orig/libs/harvester.h mythstream_mythtv-r21640/libs/harvester.h
--- mythstream_mythtv-r21640.orig/libs/harvester.h	2009-08-30 21:46:35.000000000 +0000
+++ mythstream_mythtv-r21640/libs/harvester.h	2011-02-25 01:50:53.000000000 +0000
@@ -23,7 +23,7 @@
 #include <q3process.h>
 #include <qthread.h>
 #include <q3process.h>
-#include <qhttp.h>
+#include <QtNetwork/qhttp.h>
 #include <q3dict.h>
 #include <qmap.h>
 //Added by qt3to4:
diff -ruaN mythstream_mythtv-r21640.orig/libs/player.xml mythstream_mythtv-r21640/libs/player.xml
--- mythstream_mythtv-r21640.orig/libs/player.xml	2009-08-31 20:16:28.000000000 +0000
+++ mythstream_mythtv-r21640/libs/player.xml	2011-02-25 00:36:30.000000000 +0000
@@ -341,11 +341,6 @@
       </item>
 
       <item>
-          <name>-vo</name>
-          <value>xv,</value>
-      </item>
-  
-      <item>
           <name>-user-agent</name>
           <value>QuickTime/0</value>
       </item>
diff -ruaN mythstream_mythtv-r21640.orig/libs/streamconfig.cpp mythstream_mythtv-r21640/libs/streamconfig.cpp
--- mythstream_mythtv-r21640.orig/libs/streamconfig.cpp	2009-09-02 14:40:18.000000000 +0000
+++ mythstream_mythtv-r21640/libs/streamconfig.cpp	2011-02-25 01:50:45.000000000 +0000
@@ -46,7 +46,7 @@
   
 Window hierarchy
   StreamTunedConfig: main config window with "stream" and "storage" tabs  //StreamTuned only
-  gContext->GetMainWindow() // MythTV only
+  GetMythMainWindow() // MythTV only
     StreamConfig: stream configuration handler (stream tab)
       StorageGroup: StreamConfig goupBox with storage controls
       StreamEditGroup: StreamConfig groupBox with stream property edit boxes
diff -ruaN mythstream_mythtv-r21640.orig/libs/streams.res mythstream_mythtv-r21640/libs/streams.res
--- mythstream_mythtv-r21640.orig/libs/streams.res	1970-01-01 00:00:00.000000000 +0000
+++ mythstream_mythtv-r21640/libs/streams.res	2011-02-25 01:51:06.000000000 +0000
@@ -0,0 +1,281 @@
+
+
+[item]
+Interaction
+Apple movie trailers
+whatever
+trailers
+*apple
+
+[item]
+Interaction
+Browse Shoutcast genres
+http://www.shoutcast.com
+[emptystring]
+*shoutcast/menu
+
+[item]
+Interaction
+Uitzending gemist - laatste uitzendingen (Dutch)
+http://www.uitzendinggemist.nl
+Uitzending gemist selectie
+omroep/menu
+
+[item]
+Interaction
+World Wide Media Project
+[emptystring]
+[emptystring]
+*wwmp/menu
+
+[item]
+Interaction
+tv-links - Monty Python's Flying Circus
+http://tv-links.co.uk/listings/1/2526
+[emptystring]
+tvlinks/listing
+
+[item]
+Interaction
+wwiTV list
+http://wwitv.com/television/tvbar.htm
+List of television stations
+wwitv/countries
+
+[item]
+Podcast feeds
+Beercasting
+http://beercasting.com/rss.xml
+(podcast)
+podcast
+
+[item]
+Podcast feeds
+Feed me weird things
+http://del.icio.us/rss/audio/feedmeweirdthings
+(podcast) http://del.icio.us/rss/audio/feedmeweirdthings
+rdfcast
+
+[item]
+Podcast feeds
+SETI Institute
+http://podcast.seti.org/index.xml
+podcast
+podcast
+
+[item]
+Radio
+BBC World Service
+http://www.bbc.co.uk/worldservice/meta/tx/nb/live_news_au_nb.ram
+International
+[emptystring]
+
+[item]
+Radio
+DR R&B, Denmark
+http://www.dr.dk/netradio/Metafiler/ASX/DR_RogB_128.asx
+Copenhagen, Denmark
+[emptystring]
+
+[item]
+Radio
+Energy Black, Switzerland
+http://broadcast.infomaniak.ch/energyblack-high.mp3.m3u
+Zurich, Switzerland
+[emptystring]
+
+[item]
+Radio
+Fun Radio, belgium
+http://www.funradio.be/funradiobe-low.high.pls
+[emptystring]
+[emptystring]
+
+[item]
+Radio
+Juventus Radio
+http://live.juventus.hu:8000/live.m3u
+Budapest, Hungary
+[emptystring]
+
+[item]
+Radio
+Shoutcast Country
+http://www.shoutcast.com/directory/index.phtml?sgenre=Country&numresult=50
+Country music stations
+shoutcast
+
+[item]
+Radio
+Shoutcast Rock
+http://www.shoutcast.com/directory/index.phtml?sgenre=Rock&numresult=50
+Shoutcast Rock stations
+shoutcast
+
+[item]
+Radio
+The Voice, Norway
+http://213.158.233.199:6006/listen.pls
+Oslo, Norway
+[emptystring]
+
+[item]
+Radio
+WGBH, Boston
+http://streams.wgbh.org/classical.pls
+Boston, Massachusetts
+[emptystring]
+
+[item]
+Radio
+WholeWheatRadio stream
+http://64.62.252.134:2680/listen.pls
+[emptystring]
+[emptystring]
+
+[item]
+TV
+Holland Doc
+mms://livemedia.omroep.nl/vprohollanddoc-bb
+Nederland 4 themakanaal
+[emptystring]
+
+[item]
+TV
+NASA TV
+http://www.nasa.gov/ram/35037main_portal.ram
+[emptystring]
+[emptystring]
+
+[item]
+TV
+NRK News TV
+mms://media00.nrk.no/mms2/nydi/AutoEnc/mn1840.wmv
+Norwegen
+[emptystring]
+
+[item]
+TV
+National Nine News TV
+mms://broadband.netshow.ninemsn.com.au/broadband/news/story1.wmv
+Australia
+[emptystring]
+
+[item]
+TV
+RBC TV
+http://tv.gldn.net:80/rbc
+Russia
+[emptystring]
+
+[item]
+TV
+Tweede Kamer
+mms://213.75.12.78/TKStream3
+Dutch Parliament
+[emptystring]
+
+[item]
+TV
+Uitzending gemist RSS feed
+http://www.uitzendinggemist.nl/index.php/rss
+Laatste uitzendingen
+omroep/rss
+
+[item]
+TV
+United Nations TV
+rtsp://a4.l878435134.c8784.g.lr.akamaistream.net/live/D/4/8784/v0001/reflector:35134
+[emptystring]
+[emptystring]
+
+[item]
+TV
+VPro 3Voor12 Central TV
+mms://livemedia.omroep.nl/vpro3voor12tvcentral-bb
+http://3voor12.vpro.nl
+[emptystring]
+
+[item]
+TV
+VPro 3Voor12 on Stage TV
+mms://livemedia.omroep.nl/vpro3voor12tvonstage-bb
+[emptystring]
+[emptystring]
+
+[item]
+TV
+YLE 24 News TV
+http://ra.yle.fi/ramgen/yle24/video/uusin_rk.rm
+Finland
+[emptystring]
+
+[item]
+TV
+Yomiuri News TV
+http://www.yomiuri.co.jp/stream/vnews/vnews-w.asx
+Japan
+[emptystring]
+
+[item]
+Video
+DailyMotion custom search
+http://www.dailymotion.com/rss/relevance/search/<:search term::funny:>/<:page::1:>
+Edit search term with virtual keyboard
+dailymotion/playall
+
+[item]
+Video
+DailyMotion playlist demo: Alicia Keys Live
+http://www.dailymotion.com/rss/relevance/search/Alicia+Keys+live/1
+Mark streams (M) and play
+dailymotion/playall
+
+[item]
+Video
+Dailymotion download and play: VH1/1
+http://www.dailymotion.com/rss/relevance/search/vh1/1
+[emptystring]
+dailymotion/feed
+
+[item]
+Video
+Dailymotion playlist demo: Amy Winehouse
+http://www.dailymotion.com/rss/relevance/search/Amy+Winehouse+live/1
+Mark streams (M) and play
+dailymotion/playall
+
+[item]
+Video
+YouTube top viewed today
+http://youtube.com/rss/global/top_viewed_today.rss
+Voor andere feeds zie youtube
+youtube/feed
+
+[item]
+stream lists
+Icecast list
+http://dir.xiph.org/yp.xml
+Harvested with icecast.pl script
+icecast
+
+[item]
+stream lists
+OperaCast list
+http://www.operacast.com/opstations.htm
+Stationlist from www.operacast.com
+operacast
+
+[item]
+stream lists
+Operanut list (default parser)
+http://operanut.com/radio.htm
+Some dead streams
+[emptystring]
+
+[item]
+stream lists
+Robins BBC parser
+ask the parser :)
+BBC parsing by Robin Gilks
+*bbc/robins_links
diff -ruaN mythstream_mythtv-r21640.orig/mythstream/main.cpp mythstream_mythtv-r21640/mythstream/main.cpp
--- mythstream_mythtv-r21640.orig/mythstream/main.cpp	2009-09-02 16:40:49.000000000 +0000
+++ mythstream_mythtv-r21640/mythstream/main.cpp	2011-02-25 01:50:45.000000000 +0000
@@ -57,12 +57,12 @@
 
     if (sel == "stream_config")
     {
-       StreamConfig config(gContext->GetMainWindow(), "stream", streamStorage, repos);
+       StreamConfig config(GetMythMainWindow(), "stream", streamStorage, repos);
        config.exec();
     }
     else if (sel == "storage_config")
     {
-       StorageConfig config(gContext->GetMainWindow(), "storage", streamStorage, repos);
+       StorageConfig config(GetMythMainWindow(), "storage", streamStorage, repos);
        config.exec();
     }
 
@@ -149,7 +149,7 @@
 void runStream(void)
 {
     GetMythUI()->AddCurrentLocation("mythstream");
-    MythStream stream(gContext->GetMainWindow(), "stream");
+    MythStream stream(GetMythMainWindow(), "stream");
     stream.exec();
     GetMythUI()->RemoveCurrentLocation( );
 }
diff -ruaN mythstream_mythtv-r21640.orig/mythstream/mythstream.cpp mythstream_mythtv-r21640/mythstream/mythstream.cpp
--- mythstream_mythtv-r21640.orig/mythstream/mythstream.cpp	2009-09-02 21:22:33.000000000 +0000
+++ mythstream_mythtv-r21640/mythstream/mythstream.cpp	2011-02-25 01:50:45.000000000 +0000
@@ -499,7 +499,7 @@
       QString parameter;
       int res;
 
-      popBox = new MythPopupBox(gContext->GetMainWindow(), "");
+      popBox = new MythPopupBox(GetMythMainWindow(), "");
       popBox->addLabel(label);
 
       editBox = new MythLineEdit(popBox, "");
@@ -545,7 +545,7 @@
       QString parameter;
       int res;
       
-      popBox = new MythPopupBox(gContext->GetMainWindow(), "");
+      popBox = new MythPopupBox(GetMythMainWindow(), "");
       popBox->addLabel("                  Edit Stream Item                 ");
 
       MythLineEdit *folderBox = new MythLineEdit(popBox, "");
@@ -1295,7 +1295,7 @@
   bool handled;
   QStringList actions;
 
-  handled = gContext->GetMainWindow()->TranslateKeyPress("Stream", e, actions);
+  handled = GetMythMainWindow()->TranslateKeyPress("Stream", e, actions);
   handled = false;
   
   for (int i = 0; i < actions.size() && !handled; i++)
diff -ruaN mythstream_mythtv-r21640.orig/mythstream/mythstream.pro mythstream_mythtv-r21640/mythstream/mythstream.pro
--- mythstream_mythtv-r21640.orig/mythstream/mythstream.pro	2009-08-26 07:31:07.000000000 +0000
+++ mythstream_mythtv-r21640/mythstream/mythstream.pro	2011-02-25 01:50:37.000000000 +0000
@@ -1,3 +1,4 @@
+include ( ../mythconfig.mak )
 include ( ../settings.pro )
 
 TEMPLATE = lib
diff -ruaN mythstream_mythtv-r21640.orig/parsers/youtube/vid.pl mythstream_mythtv-r21640/parsers/youtube/vid.pl
--- mythstream_mythtv-r21640.orig/parsers/youtube/vid.pl	2009-09-02 22:18:49.000000000 +0000
+++ mythstream_mythtv-r21640/parsers/youtube/vid.pl	2011-02-25 01:51:16.000000000 +0000
@@ -61,9 +61,11 @@
 
 my $a, $b;
 
-if ( ($a, $b) = $data =~ /swfArgs\s\=\s\{.*?"t":\s*"([^"]+)".+?"video_id":\s*"([^"]+)"/ )
+if ( ($a, $b) = $data =~ /'SWF_ARGS'\s*\:\s*\{.*?"t":\s*"([^"]+)".+?"video_id":\s*"([^"]+)"/ )
 {
-      $url = "http://www.youtube.com/get_video?video_id=$b&t=$a";
+      my $url = "http://www.youtube.com/get_video?video_id=$b&t=$a";
+
+      my $fmt_h264 = ($data =~ /'SWF_URL'\s*:\s*.*\.flash\.canPlayH264Videos()/);
 
       $item = $doc->createElement('item');
       $root->appendChild($item);
@@ -73,6 +75,17 @@
       $item->appendChild( newNode('descr', "") );
       $item->appendChild( newNode('handler', "") );
 
+      if ($fmt_h264)
+      {
+         $item = $doc->createElement('item');
+         $root->appendChild($item);
+         
+         $item->appendChild( newNode('name', "play: $sname [H.264]") );
+         $item->appendChild( newNode('url',  $url . '&fmt=18') );
+         $item->appendChild( newNode('descr', "") );
+         $item->appendChild( newNode('handler', "") );
+      }
+
       if (! ($playlist_enable == 1) )
       {
          $item = $doc->createElement('item');
@@ -82,6 +95,17 @@
          $item->appendChild( newNode('url',  $url) );
          $item->appendChild( newNode('descr', "") );
          $item->appendChild( newNode('handler', "STREAM_DL") );
+
+         if ($fmt_h264)
+         {
+            $item = $doc->createElement('item');
+            $root->appendChild($item);
+            
+            $item->appendChild( newNode('name', "download: $sname [H.264]") );
+            $item->appendChild( newNode('url',  $url . '&fmt=18') );
+            $item->appendChild( newNode('descr', "") );
+            $item->appendChild( newNode('handler', "STREAM_DL") );
+         }
       }
 }
 
diff -ruaN mythstream_mythtv-r21640.orig/parsers/youtube/youvid.pl mythstream_mythtv-r21640/parsers/youtube/youvid.pl
--- mythstream_mythtv-r21640.orig/parsers/youtube/youvid.pl	2009-09-02 22:18:49.000000000 +0000
+++ mythstream_mythtv-r21640/parsers/youtube/youvid.pl	2011-02-25 01:51:16.000000000 +0000
@@ -65,10 +65,12 @@
 
 my $a, $b;
 
-if ( ($a, $b) = $data =~ /swfArgs\s\=\s\{.*?"t":\s*"([^"]+)".+?"video_id":\s*"([^"]+)"/ )
+if ( ($a, $b) = $data =~ /'SWF_ARGS'\s*\:\s*\{.*?"t":\s*"([^"]+)".+?"video_id":\s*"([^"]+)"/ )
 {
       $url = "http://www.youtube.com/get_video?video_id=$b&t=$a";
 
+      my $fmt_h264 = ($data =~ /'SWF_URL'\s*:\s*.*\.flash\.canPlayH264Videos()/);
+
       $item = $doc->createElement('item');
       $root->appendChild($item);
       
@@ -77,6 +79,17 @@
       $item->appendChild( newNode('descr', "") );
       $item->appendChild( newNode('handler', "") );
 
+      if ($fmt_h264)
+      {
+         $item = $doc->createElement('item');
+         $root->appendChild($item);
+         
+         $item->appendChild( newNode('name', "play: $sname [H.264]") );
+         $item->appendChild( newNode('url',  $url . '&fmt=18') );
+         $item->appendChild( newNode('descr', "") );
+         $item->appendChild( newNode('handler', "") );
+      }
+
       $item = $doc->createElement('item');
       $root->appendChild($item);
       
@@ -84,6 +97,17 @@
       $item->appendChild( newNode('url',  $url) );
       $item->appendChild( newNode('descr', "") );
       $item->appendChild( newNode('handler', "STREAM_DL") );
+
+      if ($fmt_h264)
+      {
+         $item = $doc->createElement('item');
+         $root->appendChild($item);
+         
+         $item->appendChild( newNode('name', "download: $sname [H.264]") );
+         $item->appendChild( newNode('url',  $url . '&fmt=18') );
+         $item->appendChild( newNode('descr', "") );
+         $item->appendChild( newNode('handler', "STREAM_DL") );
+      }
 }
 
 print $head->toString;
diff -ruaN mythstream_mythtv-r21640.orig/settings.pro mythstream_mythtv-r21640/settings.pro
--- mythstream_mythtv-r21640.orig/settings.pro	2009-09-02 22:07:04.000000000 +0000
+++ mythstream_mythtv-r21640/settings.pro	2011-02-25 01:51:26.000000000 +0000
@@ -14,15 +14,15 @@
     RUNPREFIX = $$PREFIX
 }
 
-INCLUDEPATH += $${PREFIX}/include
-INCLUDEPATH += $${PREFIX}/include/mythtv
-INCLUDEPATH += $${PREFIX}/include/mythtv/libmythdb
-INCLUDEPATH += $${PREFIX}/include/mythtv/libmythui
-INCLUDEPATH += $${PREFIX}/include/mythtv/libmyth
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythdb
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmythui
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/mythtv/libmyth
 
-INCLUDEPATH += $${PREFIX}/include/qt4/Qt
+INCLUDEPATH += $${SYSROOT}$${PREFIX}/include/qt4/Qt
 
-#INCLUDEPATH *= /usr/local/include
+#INCLUDEPATH *= $${SYSROOT}/usr/local/include
 
 DEFINES += _GNU_SOURCE
 DEFINES += PREFIX=\\\"$${RUNPREFIX}\\\"
@@ -31,7 +31,3 @@
 QMAKE_LFLAGS -= -Wl,--no-undefined
 #QMAKE_LFLAGS -= --no-undefined
 QMAKE LFLAGS += -DQT_THREAD_SUPPORT
-
-release {
-  QMAKE_CXXFLAGS_RELEASE = -O2 -fomit-frame-pointer
-}