Changes of Revision 7

xt7-player-mpv.changes Changed
x
 
1
@@ -1,4 +1,10 @@
2
 -------------------------------------------------------------------
3
+Mon Jun 27 18:00:31 UTC 2016 - avvissu@yandex.by
4
+
5
+- Update to 0.18.384:
6
+  * see: /usr/share/doc/packages/xt7-player-mpv/CHANGELOG_GIT
7
+
8
+-------------------------------------------------------------------
9
 Sun Apr  3 13:51:11 UTC 2016 - avvissu@yandex.by
10
 
11
 - Update to 0.16.384:
12
xt7-player-mpv.spec Changed
19
 
1
@@ -17,7 +17,7 @@
2
 
3
 
4
 Name:           xt7-player-mpv
5
-Version:        0.16.384
6
+Version:        0.18.384
7
 Release:        0
8
 Summary:        Qt/Gambas gui to mpv
9
 License:        GPL-2.0+
10
@@ -78,7 +78,7 @@
11
 Requires:       gambas3-gb-web
12
 Requires:       gambas3-gb-libxml
13
 Requires:       gambas3-runtime >= 3.8.4
14
-Requires:       mpv >= 0.14.0
15
+Requires:       mpv >= 0.18.0
16
 Requires:       wget
17
 Requires:       youtube-dl
18
 Recommends:     dvb
19
xt7-player-mpv-0.16.384.tar.gz/README Deleted
51
 
1
@@ -1,49 +0,0 @@
2
-Xt7-Player (now xt7-player-mpv) is an open source gui to mpv.
3
-
4
-Xt7-Player-mpv aims to be an (in)complete graphical interface 
5
-to mpv, focused on usability.
6
-
7
-It also provides extra features like youtube and shoutcast integration, dvbt, 
8
-media tagging, library and playlist managment and a lot more.
9
-Visit: http://xt7-player.sourceforge.net/xt7forum/viewtopic.php?f=4&t=2 
10
-for a screenshots tour.
11
-
12
-It is written and requires (the latest) Gambas3:
13
-http://gambas.sourceforge.net/en/main.html
14
-
15
-
16
-Mandatory requirements:
17
------------------------------
18
-  * Gambas 3 (usually the very latest version)
19
-  * Qt4
20
-  * mpv
21
-
22
-
23
-
24
-Optional requirements:
25
------------------------------
26
-  * taglib to tag audio files and speed-up library syncronization:
27
-  http://developer.kde.org/~wheeler/taglib.html
28
-
29
-  * xbindkeys: to use global hotkeys
30
-  http://hocwp.free.fr/xbindkeys/
31
-
32
-  * scan and femon from LinuxTV dvb-apps to use dvbt features
33
-  http://www.linuxtv.org/wiki/index.php/LinuxTV_dvb-apps
34
-
35
-  * youtube-dl to watch and download youtube videos
36
-  http://rg3.github.com/youtube-dl/
37
-
38
-
39
-
40
-Compiling it:
41
------------------------------
42
-After you installed gambas 3, just checkout and compile xt7 that way:
43
-
44
-# git clone https://github.com/kokoko3k/xt7-player-mpv.git
45
-# cd xt7-player-mpv/
46
-# /path/to/gambas/binaries/gbc3 -e -a -g -t -p -m
47
-# /path/to/gambas/binaries/gba3
48
-# ./xt7-player-mpv.gambas
49
-
50
-
51
xt7-player-mpv-0.16.384.tar.gz/.project -> xt7-player-mpv-0.18.384.tar.gz/.project Changed
10
 
1
@@ -3,7 +3,7 @@
2
 Title=xt7-player
3
 Startup=StartClass
4
 Icon=xt7-player-mpv.png
5
-Version=0.16.384
6
+Version=0.18.384
7
 Component=gb.args
8
 Component=gb.image
9
 Component=gb.qt4
10
xt7-player-mpv-0.16.384.tar.gz/.settings -> xt7-player-mpv-0.18.384.tar.gz/.settings Changed
145
 
1
@@ -511,7 +511,7 @@
2
 Geometry=[1280,0,224,280]
3
 
4
 [DebugWindow/MyGrid]
5
-Geometry=[51,41,344,344]
6
+Geometry=[849,571,344,344]
7
 
8
 [DebugWindow/MyGrid.Data.Picture]
9
 Geometry=[48,-4,210,210]
10
@@ -742,7 +742,7 @@
11
 Geometry=[0,0,344,344]
12
 
13
 [DebugWindow/SortTable]
14
-Geometry=[11,111,522,603]
15
+Geometry=[-575,540,878,775]
16
 
17
 [DebugWindow/SourceList]
18
 Geometry=[0,41,344,344]
19
@@ -1594,7 +1594,7 @@
20
 Geometry=[47,0,210,210]
21
 
22
 [DebugWindow/i]
23
-Geometry=[1280,-3,210,446]
24
+Geometry=[1280,-3,224,446]
25
 
26
 [DebugWindow/i.Load(tmpdir & Dir(tmpdir, "*.jpg*")[0])]
27
 Geometry=[1280,-3,210,210]
28
@@ -1770,6 +1770,9 @@
29
 [DebugWindow/mplayer.cddbtracks]
30
 Geometry=[48,-4,410,672]
31
 
32
+[DebugWindow/mplayer.watched_properties_old_data]
33
+Geometry=[45,-3,224,280]
34
+
35
 [DebugWindow/mplayertag]
36
 Geometry=[44,-3,734,731]
37
 
38
@@ -2383,6 +2386,9 @@
39
 [DebugWindow/vsplit1.layout]
40
 Geometry=[0,-3,224,280]
41
 
42
+[DebugWindow/watched_properties_old_data]
43
+Geometry=[45,-3,224,280]
44
+
45
 [DebugWindow/xbindkeys]
46
 ShowHidden=True
47
 Geometry=[0,0,344,344]
48
@@ -2442,65 +2448,74 @@
49
 
50
 [OpenFile]
51
 File[1]=".src/Form/FMain.form"
52
-File[2]=".src/Form/FMain.class:0.7311"
53
-Active=5
54
-Count=58
55
+File[2]=".src/Form/FMain.class:36.524"
56
+Active=67
57
+Count=67
58
 File[3]=".src/Form/HotKeys.form"
59
-File[4]=".src/Form/HotKeys.class:7.406"
60
+File[4]=".src/Form/HotKeys.class:11.486"
61
 File[5]=".src/Form/GeneralOptions.form"
62
-File[6]=".src/Form/GeneralOptions.class:10.1004"
63
-File[7]=".src/0_Moduli/Global.module:14.1182"
64
+File[6]=".src/Form/GeneralOptions.class:15.445"
65
+File[7]=".src/0_Moduli/Global.module:40.64"
66
 File[8]=".src/Form/AddUriForm.form"
67
 File[9]=".src/Form/AddUriForm.class:2.58"
68
 File[10]=".src/Form/RealtimeForm.form"
69
 File[11]=".src/Form/DVBTuner.form"
70
-File[12]=".src/Form/DVBTuner.class:2.67"
71
+File[12]=".src/Form/DVBTuner.class:11.442"
72
 File[13]=".src/Form/EpgForm.form"
73
-File[14]=".src/Form/CoverManager.class:12.1178"
74
+File[14]=".src/Form/CoverManager.class:29.1246"
75
 File[15]=".src/Form/NewChains.form"
76
-File[16]=".src/Form/NewChains.class:0.393"
77
-File[17]=".src/Classi/MplayerClass.class:89.1016"
78
-File[18]=".src/Classi/MplayerClass_old.class:22.1240"
79
+File[16]=".src/Form/NewChains.class:49.159"
80
+File[17]=".src/Classi/MplayerClass.class:11.1592"
81
+File[18]=".src/Classi/MplayerClass_old.class:22.1707"
82
 File[19]=".src/Form/OpenSubtitesForm.class:55.19"
83
 File[20]=".src/Form/OpenSubtitesForm.form"
84
-File[21]="AA_ToDo:80.837"
85
+File[21]="AA_ToDo:103.769"
86
 File[22]=".src/Form/ladspahelper.class:22.194"
87
 File[23]=".src/Form/HotKeyGrab.form"
88
 File[24]=".src/Form/HotKeyGrab.class:2.28"
89
 File[25]="CHANGELOG_GIT:48.161"
90
-File[26]=".src/Classi/StartClass.class:1.46"
91
+File[26]=".src/Classi/StartClass.class:15.40"
92
 File[27]=".src/0_Moduli/HotKeysHelper.module:19.185"
93
 File[28]=".src/Form/ladspahelper.form"
94
 File[29]=".src/Form/FormLyrics.class:26.213"
95
 File[30]=".src/Classi/TagLib.class:0.88"
96
-File[31]=".src/Classi/PlaylistClass.class:28.1170"
97
+File[31]=".src/Classi/PlaylistClass.class:22.847"
98
 File[32]=".src/Form/FormLyrics.form"
99
 File[33]=".src/Form/FsForm.form"
100
 File[34]=".src/Form/FsForm.class:0.18"
101
-File[35]=".src/0_Moduli/MyDialog.class:0.5"
102
-File[36]=".src/Classi/SettingsClass.class:492.14"
103
+File[35]=".src/0_Moduli/MyDialog.class:26.102"
104
+File[36]=".src/Classi/SettingsClass.class:26.572"
105
 File[37]="FakeInput.conf:8.279"
106
-File[38]=".src/Form/zzzFake.class:18.49"
107
+File[38]=".src/Form/zzzFake.class:0.58"
108
 File[39]=".src/Form/zzzFake.form"
109
-File[40]=".src/Classi/randr.class:0.2"
110
+File[40]=".src/Classi/randr.class:6.149"
111
 File[41]=".src/Form/AudioConvert.form"
112
 File[42]=".src/Form/AudioConvert.class:30.121"
113
 File[43]=".src/Classi/YoutubeClass.class:30.674"
114
 File[44]=".src/Classi/ShoutCastClass.class:38.334"
115
-File[45]=".src/Classi/IceCastClass.class:0.29"
116
+File[45]=".src/Classi/IceCastClass.class:15.30"
117
 File[46]=".src/Form/MyQuestion.class:0.79"
118
-File[47]=".src/Classi/WgetClass.class:24.25"
119
+File[47]=".src/Classi/WgetClass.class:25.65"
120
 File[48]=".src/Form/TextDialog.form"
121
 File[49]=".src/Form/LogWindow.form"
122
 File[50]=".src/Form/AudioForm.form"
123
-File[51]=".src/Form/AudioForm.class:26.234"
124
+File[51]=".src/Form/AudioForm.class:32.349"
125
 File[52]=".src/Classi/VSlider.class:25.17"
126
-File[53]=".src/Classi/Meters.class:16.94"
127
+File[53]=".src/Classi/Meters.class:16.197"
128
 File[54]="shade_alpha.png"
129
 File[55]=".src/Form/OverlayTrayTip.class:15.125"
130
 File[56]="3dglassess.png"
131
 File[57]=".src/Classi/dvbsnoop_class.class:20.84"
132
 File[58]=".src/0_Moduli/ComboHistory.module:0.34"
133
+File[59]=".src/Classi/FloatSpinBox.class:23.36"
134
+File[60]=".src/Classi/LibVisualClass.class:0.0"
135
+File[61]=".src/Form/SubAndOsd.form"
136
+File[62]="00_note:59.111"
137
+File[63]=".src/Classi/AlbumView.class:15.251"
138
+File[64]=".src/Form/EpgForm.class:11.38"
139
+File[65]=".src/Form/TranslationNeeded.class:0.18"
140
+File[66]=".src/Classi/OpenSubtitlesAPI.class:28.23"
141
+File[67]=".src/Form/SubAndOsd.class:9.148"
142
 
143
 [Watches]
144
 Count=6
145
xt7-player-mpv-0.16.384.tar.gz/.src/0_Moduli/Global.module -> xt7-player-mpv-0.18.384.tar.gz/.src/0_Moduli/Global.module Changed
31
 
1
@@ -65,6 +65,7 @@
2
 Public arg_append As Boolean = False 'cmdline argument: the user want to append an uri to a running instance
3
 Public arg_debug As Boolean = False 
4
 Public arg_new_instance As Boolean = False 
5
+Public arg_start_tray As Boolean = False
6
 
7
 Public Sub init()
8
   'FixFormNames() 'needed with gambas 3.4.1; form names arent set by default!
9
@@ -292,13 +293,14 @@
10
 End
11
 
12
 Public Function IsPlaylist(filename As String) As Boolean
13
-  If ((filename Like "*.pls") Or (filename Like "*.pls\\?*")) Then Return True
14
-  If ((filename Like "*.m3u") Or (filename Like "*.m3u\\?*")) Then Return True
15
-  If ((filename Like "*.asx") Or (filename Like "*.asx\\?*")) Then Return True
16
-  If ((filename Like "*.wax") Or (filename Like "*.wax\\?*")) Then Return True
17
-  If ((filename Like "*.wvx") Or (filename Like "*.wvx\\?*")) Then Return True
18
-  If ((filename Like "*.ram") Or (filename Like "*.ram\\?*")) Then Return True
19
-  If ((filename Like "*.b4s") Or (filename Like "*.b4s\\?*")) Then Return True
20
+  Dim lfilename As String = Lower(filename)
21
+  If ((lfilename Like "*.pls") Or (lfilename Like "*.pls\\?*")) Then Return True
22
+  If ((lfilename Like "*.m3u") Or (lfilename Like "*.m3u\\?*")) Then Return True
23
+  If ((lfilename Like "*.asx") Or (lfilename Like "*.asx\\?*")) Then Return True
24
+  If ((lfilename Like "*.wax") Or (lfilename Like "*.wax\\?*")) Then Return True
25
+  If ((lfilename Like "*.wvx") Or (lfilename Like "*.wvx\\?*")) Then Return True
26
+  If ((lfilename Like "*.ram") Or (lfilename Like "*.ram\\?*")) Then Return True
27
+  If ((lfilename Like "*.b4s") Or (lfilename Like "*.b4s\\?*")) Then Return True
28
   Return False
29
 End
30
 
31
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/AlbumView.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/AlbumView.class Changed
10
 
1
@@ -249,7 +249,7 @@
2
   'Endif
3
   coverfile = CoverManager.Coverfile(artist, album, path)
4
 
5
-  If Not Exist(coverfile) 'se il coverfile non esiste
6
+  If Not Exist(coverfile, True) 'se il coverfile non esiste
7
     If CoverManager.IsUncovered(path) Then '...e non può essesere creato/caricato
8
       view.Data.Picture = CoverManager.coverpicture(coverfile, path, iconsize) 'ritorna quello di default
9
         Else
10
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/MplayerClass.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/MplayerClass.class Changed
137
 
1
@@ -136,6 +136,7 @@
2
     properties.add("track-list/" & T & "/lang")
3
     properties.add("track-list/" & T & "/type")
4
     properties.add("track-list/" & T & "/codec")
5
+    properties.add("track-list/" & T & "/selected")
6
   Next 'T
7
   
8
   properties.Add("vo-configured")
9
@@ -306,7 +307,7 @@
10
   Dim chans As String[]
11
   Dim chansfix As New String[]
12
   Dim chanfile As String = User.home & "/.config/mpv/channels.conf.ter"
13
-  If Not (Exist(chanfile)) Then Return 0
14
+  If Not (Exist(chanfile, True)) Then Return 0
15
   
16
   chans = Split(file.Load(chanfile), "\n")
17
   For i = 0 To chans.Max 'we have to discard any non valid channel line, because so does mplayer
18
@@ -513,39 +514,38 @@
19
 Public event_loop As Timer
20
 
21
 
22
-Public watched_properties As New String[]
23
-Public watched_properties_old_data As New String[]
24
+Public watched_properties_old_data As New Collection 'name holds property name, data holds old data value
25
 
26
 Public Sub event_loop_timer()
27
   '* generate events on property changes 
28
   '* keep properties updated
29
   Dim name, data_new, data_old As String
30
-  Dim i As Integer
31
+  Dim watched_properties As New String[]
32
+
33
+  For Each data_old In watched_properties_old_data
34
+     watched_properties.Add(watched_properties_old_data.key)
35
+  Next
36
   If watched_properties.count > 0 Then
37
     get_properties_mpv(watched_properties, False) 'async ask for those properties
38
     Wait 0.1
39
     'see if some property has changed:
40
 
41
-    For i = 0 To watched_properties.count - 1
42
-
43
-      name = watched_properties[i]
44
+    For Each data_old In watched_properties_old_data
45
+      name = watched_properties_old_data.Key
46
       data_new = getP(name)
47
-      data_old = watched_properties_old_data[i]
48
-
49
       If data_old <> data_new Then 
50
         Raise property_change(name, data_old, data_new)
51
-        watched_properties_old_data[i] = data_new
52
+        watched_properties_old_data[name] = data_new
53
       Endif
54
     Next
55
   Endif
56
-
57
-
58
 End
59
 
60
 Event property_change(name As String, data_old As String, data_new As String)
61
 
62
 Event seeking()
63
 
64
+
65
 Private Function internal_options() As Collection
66
   Dim out As New Collection
67
 
68
@@ -615,7 +615,7 @@
69
     Shell killer_script & " " & Application.id & " " & playerprocess.id
70
     global.myDebug(killer_script & " " & Application.id & " " & playerprocess.id)
71
 
72
-  watched_properties_old_data.Resize(watched_properties.count)
73
+
74
   event_loop = New Timer As "event_loop"
75
   event_loop.delay = 500
76
   event_loop.start
77
@@ -724,7 +724,6 @@
78
   Dim properties As String[]
79
   Dim cuetext As String 
80
   Dim fullpath As String
81
-  
82
   fullpath = getP("fullpath") 
83
   
84
   If fullpath = "" Then Return
85
@@ -756,7 +755,6 @@
86
   FillMultitracks(force_audio_only) 'will set prop[audioonly] too.
87
 
88
   Try setP("size", (Stat(fullpath, True).Size Div 1024))
89
-  
90
   properties = New String[]
91
   properties.insert(["filename", "partially-seekable", "file-format", "audio-codec"]) 'common
92
   'properties.Insert(["=audio-bitrate", "audio-channels", "=audio-channels", "=audio-samplerate"]) 'common
93
@@ -1127,7 +1125,7 @@
94
 
95
   mpv_command(["no-osd", "screenshot_to_file", picfile, "video"])
96
 
97
-  While Not Exist(picfile) 'wait for mplayer answer
98
+  While Not Exist(picfile, True) 'wait for mplayer answer
99
     Wait 0.05
100
     timeout = timeout - 1
101
   Wend
102
@@ -1382,7 +1380,7 @@
103
 Public Sub thumbprocess_kill()
104
   Try Copy outdirpriv & "/" & Dir(outdirpriv, "*")[0] To newfilenamepriv
105
   Shell "rm -R " & outdirpriv & "&>/dev/null"
106
-  If Exist(newfilenamepriv) Then
107
+  If Exist(newfilenamepriv, True) Then
108
     Raise ThumbAvailableFor(Thumbfullpathpriv, gridpriv, rowpriv, columnpriv)
109
       Else
110
     If ShortMovieChecked Then 
111
@@ -1491,7 +1489,7 @@
112
       
113
       'wait for pic
114
       timeout = 100
115
-      If Not Exist(tmpdir) Then Goto lStart
116
+      If Not Exist(tmpdir, True) Then Goto lStart
117
       While Dir(tmpdir, "*.png").count = 0 And (timeout > 0) And mpanalyze.state = Process.Running
118
         Wait 0.01
119
         timeout -= 1
120
@@ -1514,7 +1512,7 @@
121
       Try cTimei = Split(cTime, ".")[0]
122
       Try cTimef = Split(cTime, ".")[1]
123
       Try t = tmpdir & Dir(tmpdir, "*.png")[0]
124
-      If Exist(t) Then
125
+      If Exist(t, True) Then
126
         Try i = i.Load(tmpdir & Dir(tmpdir, "*.png")[0])
127
         'Shell "mv  " & (tmpdir & Dir(tmpdir, "*.jpg")[0]) & " /tmp/tmp/" & ctime & ".jpg" Wait
128
         If Not Error Then 
129
@@ -1849,7 +1847,6 @@
130
     For Each name In names
131
       p = getP(name) 
132
       p_timestamp = getP_time(name)
133
-      Debug p_timestamp
134
       If wait_unavailable Then 
135
         If (p_timestamp > time_zero) And (p <> unavailable_str) Then names.Remove(names.Find(name))
136
           Else
137
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/MplayerClass_old.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/MplayerClass_old.class Changed
37
 
1
@@ -568,7 +568,7 @@
2
   Random1 = Int(Rnd(0, 65535))
3
   Try Mkdir global.confpath & "/.InputPipes"
4
   inputpipe = global.confpath & "/.InputPipes/Xt7Input-" & Random1
5
-  If Exist(inputpipe) Then Shell "rm '" & inputpipe & "'" Wait
6
+  If Exist(inputpipe, True) Then Shell "rm '" & inputpipe & "'" Wait
7
   Shell "mkfifo " & inputpipe Wait
8
   'SLEEP 1  
9
 End
10
@@ -1581,7 +1581,7 @@
11
 Public Sub thumbprocess_kill()
12
   Try Copy outdirpriv & "/" & Dir(outdirpriv, "*")[0] To newfilenamepriv
13
   Shell "rm -R " & outdirpriv & "&>/dev/null"
14
-  If Exist(newfilenamepriv) Then
15
+  If Exist(newfilenamepriv, True) Then
16
     Raise ThumbAvailableFor(Thumbfullpathpriv, gridpriv, rowpriv, columnpriv)
17
       Else
18
     If ShortMovieChecked Then 
19
@@ -1686,7 +1686,7 @@
20
       
21
       'wait for pic
22
       timeout = 100
23
-      If Not Exist(tmpdir) Then Goto lStart
24
+      If Not Exist(tmpdir, True) Then Goto lStart
25
       While Dir(tmpdir, "*.jpg").count = 0 And (timeout > 0) And mpanalyze.state = Process.Running
26
         Wait 0.01
27
         timeout -= 1
28
@@ -1705,7 +1705,7 @@
29
       Try cTimei = Split(cTime, ".")[0]
30
       Try cTimef = Split(cTime, ".")[1]
31
       Try t = tmpdir & Dir(tmpdir, "*.jpg")[0]
32
-      If Exist(t) Then
33
+      If Exist(t, True) Then
34
         Try i = i.Load(tmpdir & Dir(tmpdir, "*.jpg")[0])
35
         'Shell "mv  " & (tmpdir & Dir(tmpdir, "*.jpg")[0]) & " /tmp/tmp/" & ctime & ".jpg" Wait
36
         If Not Error Then 
37
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/OpenSubtitlesAPI.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/OpenSubtitlesAPI.class Changed
10
 
1
@@ -21,7 +21,7 @@
2
     timeout -= 1
3
   Wend
4
   If timeout = 0 Then Return "-1"
5
-  If Exist(Responsefile) Then
6
+  If Exist(Responsefile, True) Then
7
     answer = Trim(File.Load(responsefile))
8
   Endif
9
   Return File.Load(Responsefile)
10
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/PlaylistClass.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/PlaylistClass.class Changed
136
 
1
@@ -407,6 +407,7 @@
2
   Dim i, r As Integer
3
   Dim layout As String = "Layout"
4
   Dim MyFile As File
5
+  Try Copy filename To filename & ".bak"
6
   Myfile = Open filename For Write Create
7
   'write table layout
8
   For i = 0 To mygrid.Columns.Count - 1
9
@@ -417,6 +418,7 @@
10
     Print #Myfile, Table[r]
11
   Next 'c
12
   Close #MyFile
13
+  
14
 End
15
 
16
 
17
@@ -838,7 +840,7 @@
18
 
19
  
20
  
21
- If Exist(dirtoadd) And (Not MatchExcluded) Then
22
+ If Exist(dirtoadd, True) And (Not MatchExcluded) Then
23
    For Each filename In Dir(DirToAdd).Sort()
24
     If Right(DirToAdd) <> "/" Then DirToadd = DirToAdd & "/"
25
     MyExist = True
26
@@ -862,7 +864,6 @@
27
 End
28
 
29
 
30
-
31
 Public Sub SyncSortedTable()
32
 'Will fill SortTable with Full paths from ptable
33
 'and sort it to allow fast searches for duplicates through function IsDupe()
34
@@ -870,10 +871,8 @@
35
   'DIM starttime AS Date = Now
36
   'DIM endtime AS Date
37
    
38
-  
39
   Dim i As Integer
40
 
41
-
42
   Dim Field As String = "Full Path"
43
   SortTable.clear
44
   'PRINT "Debug: playlistclass syncsorttable() start at: " & Time
45
@@ -885,7 +884,17 @@
46
     SortTable.Add(GetValue(Ptable[i], Field))
47
   Next 'i
48
   ' [GB2:TEXT] SortTable = SortTable.Sort(gb.text)
49
-  SortTable = SortTable.Sort(gb.language)
50
+
51
+  Try SortTable = SortTable.Sort(gb.language)
52
+  If Error Then
53
+    Debug "SortTable.Sort(gb.language) failed."
54
+    Debug "Some filename is using a wrong charset,"
55
+    Debug "Failing back to Mergesort with comparison error handling,"
56
+    Debug "but this may be inaccurate and lead to wrong search results."
57
+    Debug "You are STRONGLY advised to fix your filenames."
58
+    sorttable = mergesort(SortTable)
59
+  Endif
60
+
61
   'PRINT "Debug: playlistclass syncsorttable() end at: " & Time
62
   
63
   'endtime = Now
64
@@ -893,6 +902,63 @@
65
   
66
 End
67
 
68
+
69
+Private Function MergeSort(aArray As String[]) As String[]
70
+  'override for builtin gambas sort function with
71
+  'error check on comparison functions
72
+  'uses mergesort.
73
+  
74
+   Dim aA, aB As String[]
75
+   Dim iI As Integer = 0, iJ As Integer = 0, iK As Integer = 0
76
+   Dim iMid As Integer
77
+
78
+   ' Trivial case
79
+   If aArray.Count = 1 Then Return aArray
80
+   ' Split
81
+   iMid = aArray.Count / 2
82
+   aA = MergeSort(aArray.Copy(0, iMid))
83
+   aB = MergeSort(aArray.Copy(iMid, aArray.Count - iMid))
84
+   ' Merge. We reuse the space in aArray to save the sorted array
85
+   While iI < aA.Count And iJ < aB.Count
86
+      'If aA[iI] <= aB[iJ] Then
87
+      If FirstIsEqualLess(aA[iI], aB[iJ]) Then
88
+         aArray[iK] = aA[iI]
89
+         Inc iI
90
+      Else
91
+         aArray[iK] = aB[iJ]
92
+         Inc iJ
93
+      Endif
94
+      Inc iK
95
+   Wend
96
+   If iI = aA.Count Then ' Put the non-consumed array into aA
97
+      aA = aB
98
+      iI = iJ
99
+   Endif
100
+   While iI < aA.Count
101
+      aArray[iK] = aA[iI]
102
+      Inc iI
103
+      Inc iK
104
+   Wend
105
+   Return aArray
106
+End
107
+  
108
+Public Sub FirstIsEqualLess(a As String, b As String) As Boolean
109
+  Dim out As Boolean = True
110
+  Try out = Comp(a, b, gb.language) <= 0
111
+  If Error Then
112
+    Debug "Error while comparing strings, with gb.language", a, b
113
+    Try out = Comp(a, b, gb.natural) <= 0
114
+    If Error Then 
115
+      Debug "Error while comparing strings, with gb.natural", a, b
116
+      Try out = Comp(a, b, gb.binary) <= 0
117
+      If Error Then Debug "Error while comparing strings, with gb.binary, giving up.", a, b
118
+    Endif
119
+  Endif
120
+  Return out
121
+End
122
+
123
+
124
+
125
 Private Function BinarySearch(item As String) As Integer
126
   Dim first, Tlast, middle As Integer
127
 
128
@@ -1484,6 +1550,7 @@
129
     'find the maximum Gambas column width
130
     For TextW = 3000 DownTo 0 Step 4
131
       Try MyGrid.Columns[0].w = TextW
132
+      If Error Then Return
133
       If MyGrid.Columns[0].w = TextW Then Break
134
     Next
135
     maxgbw = TextW
136
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/SettingsClass.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/SettingsClass.class Changed
37
 
1
@@ -15,7 +15,7 @@
2
 Public ExcludedValues As String[] = ["thumblebox", "NumberBox", "View", "Statusbar1", "SeekBar", "TagPanel", "DriverDescription", "DescriptionArea", "FilterTextBox", "NOPARSETABLIBRARY", "NOPARSETABALBUMS", "NOPARSETABBROWSE", "NOPARSETABPLAYLIST", "NOPARSETABCHAPTERS", "NOPARSETABFLASH", "NOPARSETABSHOUTCAST", "NOPARSETABPODCAST", "NOPARSETABDVB", "NOPARSETABCDDA", "NOPARSETABDVD", "NOPARSETABPROFILES", "NOPARSETABMEDIAINFO", "YOUVIDEOINFO", "SCROLLVIEWYT", "SIDEPANELYOUTUBE", "CACHEBAR", "NOSAVEVBOX2", "NOSAVEVBOX3", "NOSAVEHBOX10", "AUDIOCHAINBOX", "AUDIOFILTERSBOX", "VIDEOCHAINBOX", "VIDEOFILTERSBOX", "PLAYLISTSELINFOBOX", "PLAYLISTSELINFO", "LIBRARYSELINFO", "BUTTON_SHOW_MAN", "HELPBOX", "TEXTAREAHELP", "NOSAVELABEL1", "filter_button_up", "filter_button_down"]
3
 
4
 Public Function ReadedConfFile(FileName As String) As String[]
5
-  If Exist(FileName) Then Return Split(File.Load(filename), "\n", "", True)
6
+  If Exist(FileName, True) Then Return Split(File.Load(filename), "\n", "", True)
7
   'else
8
   Return [""]
9
 End
10
@@ -27,7 +27,7 @@
11
   Dim FileInMemory As String
12
   Dim Splitted As New String[]
13
   
14
-  If Exist(FileName) Then
15
+  If Exist(FileName, True) Then
16
     ConfFile = Open FileName For Read
17
     Read #ConfFile, FileInMemory, - Stat(FileName).size
18
     Close #ConfFile
19
@@ -276,7 +276,7 @@
20
   'Filename is the form setting file
21
   '/home/user/.config/gambas/Xt7-Player/default.profile/FMain
22
   FileName = Filename & ".profile/" & TheForm.name
23
-  
24
+
25
   theSettings = ReadedConfFile(Filename)
26
   
27
   For i = 0 To thesettings.Max
28
@@ -457,7 +457,7 @@
29
   Dim i As Integer
30
   Dim tmp As String
31
   
32
-  If Exist(myfilename) Then
33
+  If Exist(myfilename, True) Then
34
     myfile = Open myfilename For Read
35
     For i = 0 To FMain.LeftSideTabs.count - 1
36
       Try Line Input #myfile, tmp
37
xt7-player-mpv-0.16.384.tar.gz/.src/Classi/WgetClass.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Classi/WgetClass.class Changed
19
 
1
@@ -27,7 +27,7 @@
2
       Try out = File.Load(tmpfile)
3
     Endif
4
     tries = tries - 1
5
-    If Exist(tmpfile) Then
6
+    If Exist(tmpfile, True) Then
7
       If (Stat(tmpfile).size > 0) Then wgetdone = True
8
     Endif
9
   'UNTIL ((tries = 0) OR (Stat(tmpfile).size > 0))
10
@@ -63,7 +63,7 @@
11
     While (ProcessRunningOvr(wgetprocess2))
12
       Wait 0.05
13
     Wend
14
-    If Exist(tmpfile) Then
15
+    If Exist(tmpfile, True) Then
16
       If (Stat(tmpfile).size > 0) Then wgetdone = True
17
     Endif
18
   Until ((tries = 0) Or wgetdone)
19
xt7-player-mpv-0.16.384.tar.gz/.src/Form/AudioForm.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/AudioForm.class Changed
13
 
1
@@ -388,10 +388,7 @@
2
   leftalignup.w = (AudioPanel.w - Max(upwidth, downWidth)) Div 2
3
   leftaligndown.w = leftalignup.w 
4
 
5
-  ' audioform.GridDown.Columns[0].w = -1
6
-  ' audioform.GridDown.Columns[1].w = -1
7
-  ' audioform.GridUp.Columns[0].w = -1
8
-  ' audioform.GridUp.Columns[1].w = -1
9
+
10
 End
11
 
12
 Public Sub UpdateCell(g As Gridview, row As Integer, column As Integer, t As String)
13
xt7-player-mpv-0.16.384.tar.gz/.src/Form/AudioForm.form -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/AudioForm.form Changed
71
 
1
@@ -48,6 +48,10 @@
2
           Alignment = Align.Center
3
         }
4
       }
5
+      { TimerZoomOut #Timer
6
+        #Move(140,63)
7
+        Delay = 30
8
+      }
9
       { GridUp GridView audioareagroup
10
         Name = "GridUp"
11
         Move(189,14,364,133)
12
@@ -57,12 +61,8 @@
13
         ScrollBar = Scroll.None
14
         AutoResize = False
15
       }
16
-      { TimerZoomOut #Timer
17
-        #Move(210,56)
18
-        Delay = 30
19
-      }
20
       { GridUpShadow GridView
21
-        Move(217,28,364,100)
22
+        Move(301,7,364,100)
23
         Background = &HFF000000&
24
         Border = False
25
         Grid = False
26
@@ -72,7 +72,7 @@
27
     }
28
     { Panel1 Panel audioareagroup
29
       Name = "Panel1"
30
-      Move(35,210,588,150)
31
+      Move(28,196,588,150)
32
       Arrangement = Arrange.Horizontal
33
       AutoResize = True
34
       Spacing = True
35
@@ -82,7 +82,7 @@
36
         Tracking = True
37
       }
38
       { GridDownShadow GridView
39
-        Move(21,0,504,56)
40
+        Move(42,-7,504,56)
41
         Background = &HFF000000&
42
         Border = False
43
         Grid = False
44
@@ -91,7 +91,7 @@
45
       }
46
       { GridDown GridView audioareagroup
47
         Name = "GridDown"
48
-        Move(77,0,504,50)
49
+        Move(133,14,504,50)
50
         Background = &HFF000000&
51
         Border = False
52
         Grid = False
53
@@ -108,7 +108,7 @@
54
     }
55
     { PictureBack PictureBox AudioAreaGroup
56
       Name = "PictureBack"
57
-      Move(406,63,231,63)
58
+      Move(315,84,231,63)
59
       Tracking = True
60
       Drop = True
61
       Expand = True
62
@@ -117,7 +117,7 @@
63
     }
64
   }
65
   { TimerZoomIn #Timer
66
-    #Move(182,161)
67
+    #Move(49,154)
68
     Delay = 30
69
   }
70
 }
71
xt7-player-mpv-0.16.384.tar.gz/.src/Form/CoverManager.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/CoverManager.class Changed
46
 
1
@@ -385,14 +385,14 @@
2
   Return cornice(Stock[CStr(height + shadowoffset) & "/video"].Image, neww)
3
 Endif
4
 
5
-If Exist(coverfile) Then
6
+If Exist(coverfile, True) Then
7
   Try Return CoverCacheList[cachefile].picture 'Se esiste l 'immagine in memoria dai l 'immagine in memoria ed esci
8
   If Error Then 'Se non esiste l 'immagine in memoria, allora
9
-    If Exist(cachefile) Then  'Se esiste una cache su disco allora
10
+    If Exist(cachefile, True) Then  'Se esiste una cache su disco allora
11
       Try CoverCacheList.Add(cachefile, "", cornice(Shadowed(picture.Load(cachefile)), neww)) 'mettila IN memoria **************************************
12
       If Not Error Then Return CoverCacheList[cachefile].picture 'ritornala
13
         Else 'Altrimenti(non esiste cache su disco)
14
-      If Exist(coverfile) 'se esiste la cover su disco, ma non la cache
15
+      If Exist(coverfile, True) 'se esiste la cover su disco, ma non la cache
16
         tmpimage = image.Load(coverfile)
17
         If (tmpimage.w < tmpimage.h) Then
18
           width = ((tmpimage.w / tmpimage.h) * height)
19
@@ -979,7 +979,7 @@
20
         picturebox1.refresh
21
         'Me.show
22
         Wait 0.1
23
-        If ((Not Exist(Coverfile(ArtistText.text, AlbumText.text))) And Not JustFileCover) Or forcesearch Then
24
+        If ((Not Exist(Coverfile(ArtistText.text, AlbumText.text), True)) And Not JustFileCover) Or forcesearch Then
25
           Try search() 'start a fetch
26
         Endif
27
       Endif
28
@@ -1039,7 +1039,7 @@
29
    Return
30
      Else 'file not (yet?) marked as not found
31
    If Not global.IsNetworkURI(fullpath) Then
32
-     If Not Exist(fullpath) Then
33
+     If Not Exist(fullpath, True) Then
34
        global.myDebug("Missing file! " & fullpath)
35
        FileNotFoundAdd(fullpath)
36
         'mygrid[row, 0].picture = picture["icon:/" & (rowheight -global.rowpadding) & "/error"]
37
@@ -1244,7 +1244,7 @@
38
     Wait 0.05
39
   Wend
40
   If FMain.closing Then Return
41
-  If Exist(coverfilepath) Then Return
42
+  If Exist(coverfilepath, True) Then Return
43
   mplayerthumb = New Mplayerclass As "thumbnailer"
44
   runningthumblers += 1
45
   global.myDebug(runningthumblers)
46
xt7-player-mpv-0.16.384.tar.gz/.src/Form/DVBTuner.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/DVBTuner.class Changed
30
 
1
@@ -27,7 +27,7 @@
2
   Scanexe = Trim(Scanexe)
3
   femonexe = Trim(femonexe)
4
 
5
-  If Not (Exist(Trim(scanexe)) And Exist(Trim(femonexe))) Then
6
+  If Not (Exist(Trim(scanexe), True) And Exist(Trim(femonexe), True)) Then
7
     errmessage = errmessage & "Sorry, cannot find 'scan' and/or 'femon'\n"
8
     errmessage = errmessage & "\n"
9
     errmessage = errmessage & "Fill scan and femon executables fields\n"
10
@@ -409,8 +409,8 @@
11
   mplayerchannelsfilebak = mplayerchannelsfile & ".prext7"
12
   'mplayer doesn't support to specify an alternative channels file, so
13
   'we backup an existing one and populate it again with our values
14
-  If (Not Exist(mplayerchannelsfilebak)) Then
15
-    If Exist(mplayerchannelsfile) Then
16
+  If (Not Exist(mplayerchannelsfilebak, True)) Then
17
+    If Exist(mplayerchannelsfile, True) Then
18
       Try Copy mplayerchannelsfile To mplayerchannelsfilebak
19
       If Not Error Then
20
         displayinfo = True
21
@@ -440,7 +440,7 @@
22
 End
23
 
24
 Public Sub selecttuning()
25
-  If Exist("/usr/share/dvb/dvb-t") Then myDialog.Path = "/usr/share/dvb/dvb-t/"
26
+  If Exist("/usr/share/dvb/dvb-t", True) Then myDialog.Path = "/usr/share/dvb/dvb-t/"
27
   myDialog.OpenFile()
28
   ftablefilesource = myDialog.Path
29
   Me.Caption = "Tuning Data file: " & File.Name(ftablefilesource)
30
xt7-player-mpv-0.16.384.tar.gz/.src/Form/FMain.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/FMain.class Changed
201
 
1
@@ -235,7 +235,7 @@
2
 Public SwitchingFullScreen As Boolean = False
3
 
4
 'Private UserStopped As Boolean = False 'if user has hit stop, don't advance in playlist.
5
-Private FirstPlay As Boolean = False ' used to avoid playing the media at startup if togglepls button is toggled
6
+Public FirstPlay As Boolean = False ' used to avoid playing the media at startup if togglepls button is toggled
7
 
8
 Public LastDvdID As String = ""            'used to manage dvd disk changes
9
 
10
@@ -442,6 +442,7 @@
11
   global.initearlyformsdone = True
12
   SubAndOsd.Init()
13
   GeneralOptions.Init()
14
+  generaloptions.BackColorChooseBTN2.background = Color.Merge(Color.TextBackground, Color.black, 0.1)
15
   Try Last.mouse = mouse.default
16
   fmain.mouse = mouse.default
17
   global.myDebug("Ends at:" & Time)
18
@@ -452,6 +453,9 @@
19
 Public Sub AllInit_Post()
20
   Dim cscreen As Screen  
21
   Dim savefileview1path As String
22
+  If Not Panel2.visible Then Panel2.visible = True
23
+  If MyLibraryProgressBar.visible Then MyLibraryProgressBar.visible = False
24
+  
25
   Hsplit1ResizeDelayed = New Timer As "Hsplit1ResizeDelayed" 'used to delay the hsplit resize and better performance
26
   Hsplit1ResizeDelayed.delay = 300
27
   Hsplit1ResizeDelayed.Enabled = False
28
@@ -507,7 +511,13 @@
29
   Try HotKeys.LoadHotKeys(global.confpath & "/" & global.CurrentProfile)
30
   Try UpdateProfilesTabList()
31
   UpdateMenuTabVisibility()
32
-  If GeneralOptions.TrayCHK1.value Then Try InitTrayIcon()
33
+  If (GeneralOptions.TrayCHK1.value) Or global.arg_start_tray Then Try InitTrayIcon()
34
+  If global.arg_start_tray Then 
35
+    If desktop.HasSystemTray Then 
36
+      fmain.Minimized = True
37
+      fmain.SkipTaskbar = True
38
+    Endif
39
+  Endif
40
    If TabSelectedShoutcast() Then
41
      ShoutCast_Select()
42
   Else If TabSelectedLibrary() Then
43
@@ -533,7 +543,7 @@
44
   Endif
45
 
46
   If global.arg_file <> "" Then
47
-    If Exist(global.arg_file) Then fmain.ShowBrowseTabTo(global.arg_file)
48
+    If Exist(global.arg_file, True) Then fmain.ShowBrowseTabTo(global.arg_file)
49
   Endif
50
   If GeneralOptions.ToolTipsCHKDBUS.value Then Try ExportDbusProperties()
51
   updaterecentfiles()
52
@@ -894,7 +904,6 @@
53
   Dim Userfont As Font = GeneralOptions.FontChooseBTN1.font
54
 
55
   Dim i As Integer
56
-
57
   If GeneralOptions.HideTabTextCHK.value Then
58
     For i = 0 To Leftsidetabs.Count - 1
59
       leftsidetabs[i].text = ""
60
@@ -1018,6 +1027,10 @@
61
   GenresTree.Foreground = forecolor
62
   GenresTree.Background = backcolor
63
   
64
+  ShutResultGrid.font = userfont
65
+  ShutResultGrid.Foreground = forecolor
66
+  ShutResultGrid.Background = backcolor
67
+  
68
   PodcastTree.font = Userfont
69
   PodcastTree.Foreground = forecolor
70
   PodcastTree.Background = backcolor
71
@@ -1099,6 +1112,8 @@
72
 Public havetoshowbrowsetab As Boolean = False
73
 Private PlayFromCommandline As Boolean = False
74
 
75
+Private timer_delay_play As Timer
76
+
77
 Public Sub MainInit()
78
   
79
   Dim AlreadyRunning As Boolean = False
80
@@ -1109,7 +1124,7 @@
81
   FirstTimeXt7 = Not (Exist(global.ConfPath))
82
   ShutOff_Click()
83
   MakeProfilePath()
84
-  
85
+
86
   Try Shell "mkdir -p " & Global.ScreenshotFolder & " >/dev/null 2>&1" Wait
87
   Try Mkdir User.home & "/.config/mpv/"
88
   covermanager.MakeCoverDirs()
89
@@ -1138,6 +1153,7 @@
90
     If global.CurrentProfile = "" Then global.CurrentProfile = "default"
91
 
92
     If (Not global.initearlyformsdone) Then InitEarlyForms()
93
+
94
     ReallySaveAllSettings(global.currentprofile, False) 'before loading user settings, make a profile with factory values.
95
     global.myDebug("Made a new profile: '" & global.CurrentProfile & "' as a copy of the factory default one")
96
 
97
@@ -1148,9 +1164,9 @@
98
 
99
   Try UpdateProfilesTabList()
100
 
101
-  If (global.arg_file <> "") Then
102
+  AllInit_pre()
103
 
104
-    AllInit_pre()
105
+  If (global.arg_file <> "") Then
106
 
107
     FirstPlay = True 'used to  avoid playing media at start when togglepls button is toggled
108
     Me.mouse = mouse.Wait
109
@@ -1160,17 +1176,23 @@
110
     If (Not global.arg_append) And (global.arg_file <> "") Then 
111
       Media_Next_path = DConv(global.arg_file)
112
       PlayFromCommandline = True 
113
-      If Exist(DConv(global.arg_file)) Then SetActivePlayQueue("browse")
114
-      Play(DConv(global.arg_file))
115
+      If Exist(DConv(global.arg_file), True) Then SetActivePlayQueue("browse")
116
+      If global.IsPlaylist(global.arg_file) Then
117
+        timer_delay_play = New Timer As "timer_delay_play"
118
+        timer_delay_play.delay = 100
119
+        timer_delay_play.Start()
120
+          Else
121
+        Play(DConv(global.arg_file))
122
+      Endif
123
+      
124
     Endif
125
     Me.Mouse = mouse.Default
126
     havetoshowbrowsetab = True
127
 
128
       Else
129
 
130
-    AllInit_pre()
131
     FMain.LoadFormGeometry()
132
-    fmain.Show
133
+    If Not global.arg_start_tray Then fmain.Show
134
   Endif
135
   
136
   DelayTimer.delay = 1000
137
@@ -1184,6 +1206,18 @@
138
 End
139
 
140
 
141
+Public Sub timer_delay_play_Timer()
142
+
143
+  If Not fmain.FullyLoaded Then Return
144
+  timer_delay_play.stop
145
+  Play(DConv(global.arg_file))
146
+  
147
+  'hacky.
148
+    audioform.AutoresizeAudioForm()
149
+End
150
+
151
+
152
+
153
 Public Sub ShowBrowseTabTo(fullpath As String)
154
 
155
   Dim path As String
156
@@ -1272,6 +1306,7 @@
157
   Dim cTime As Integer = 0
158
   Dim audio_codec As String = ""
159
   Dim chapter As Integer
160
+  Dim tracklist_current_audio As Integer = 0
161
   
162
   If Not mplayer.ProcessRunningOvr() Then Return
163
   
164
@@ -1288,7 +1323,9 @@
165
 
166
   PropertiesGrid[12, 1].text = mplayer.getP("=audio-params/channels")
167
   PropertiesGrid[13, 1].text = mplayer.getP("=audio-params/samplerate")
168
-  PropertiesGrid[14, 1].text = mplayer.getP("audio-codec")
169
+  'PropertiesGrid[14, 1].text = mplayer.getP("audio-codec")
170
+  Try tracklist_current_audio = mplayer.getP("tracklist-current-audio")
171
+  PropertiesGrid[14, 1].text = mplayer.getP("track-list/" & tracklist_current_audio & "/codec")
172
   'Try PropertiesGrid[15, 1].text = (CInt(mplayer.get_property_mpv("=audio-bitrate")) Div 1000) & "Kbps"
173
   Try PropertiesGrid[15, 1].text = mplayer.get_property_mpv("audio-bitrate")
174
 
175
@@ -1404,7 +1441,7 @@
176
 
177
   Try Shell "rm -R " & global.ConfPath & "/" & "thumbcontainer.* &>/dev/null"
178
   StartClass.ProcessSignals(False)
179
-  If buttoncapture.value Then StopDumping(generaloptions.dvbfinaldir.text)
180
+  If buttoncapture.value Then StopDumping()
181
   
182
   Try Unlock hLock
183
   Repeat
184
@@ -1566,13 +1603,15 @@
185
   Dim dH As Integer = 3
186
   Dim AR As Float = 1.333
187
   Dim ARv As Float = videobox.w / videobox.h
188
-  Dim NoBarResize As Float
189
+  Dim f As Float
190
+  Dim videodisplay_w, videodisplay_h As Integer
191
+  Dim barsize As Integer 
192
+  Dim NoBarResize, halfbarresize As Float
193
 
194
   Dim no_video As Boolean = True
195
  
196
   If zzzfake.YTPanel.Parent = outerbox Then YTPanel_myrefresh()
197
  
198
- 
199
   Try no_video = mplayer.getP("audioonly")
200
   If no_video Then Return
201
xt7-player-mpv-0.16.384.tar.gz/.src/Form/FMain.form -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/FMain.form Changed
20
 
1
@@ -862,6 +862,9 @@
2
             Grid = False
3
             Header = GridView.Horizontal
4
           }
5
+          { timervolume #Timer
6
+            #MoveScaled(21,14)
7
+          }
8
         }
9
         { LibrarySelInfo Label
10
           MoveScaled(1,47,36,4)
11
@@ -1410,7 +1413,7 @@
12
               Text = ("Order by")
13
             }
14
             { ComboBoxOrderBy ComboBox
15
-              MoveScaled(9.4286,-31.2857,18,4)
16
+              MoveScaled(9.4286,-34.2857,18,4)
17
               #Translate = False
18
               Expand = True
19
               ReadOnly = True
20
xt7-player-mpv-0.16.384.tar.gz/.src/Form/GeneralOptions.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/GeneralOptions.class Changed
13
 
1
@@ -362,9 +362,9 @@
2
   t1 = Temp()
3
   Select Case Left(NoParseVisType2.text)
4
     Case "1"
5
-      visstring = "'[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(ih/2):y=(0),crop=h=(ih/2):y=ih,colorlevels=romax=0.5[waves];[spectrum][waves]overlay[vo]'"
6
+      visstring = "'[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(ih/2):y=(0),crop=h=(ih/2):y=ih,colorlevels=romax=0.5:bomin=1:gomin=1[waves];[spectrum][waves]overlay[vo]'"
7
     Case "2"
8
-      visstring = "'[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(in_h):y=(in_h/2),colorlevels=romax=0.5,colorkey=0x000000:0.1:0.5[waves];[spectrum][waves]overlay[vo]'"
9
+      visstring = "'[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(in_h):y=(in_h/2),colorkey=0x000000:0.1:0.5,colorlevels=romax=0.5:bomin=1:gomin=1[waves];[spectrum][waves]overlay[vo]'"
10
     Case "3"
11
       Copy "shade_alpha.png" To t1
12
       visstring = "'[aid1]asplit [a][ao];[a]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x256:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h[spectrum];movie=" & t1 & ",scale=h=(in_h/1.5)[pic];[spectrum][pic]overlay[vo]'"
13
xt7-player-mpv-0.16.384.tar.gz/.src/Form/GeneralOptions.form -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/GeneralOptions.form Changed
10
 
1
@@ -40,7 +40,7 @@
2
       }
3
     }
4
     { Tabstrip1 TabStrip
5
-      MoveScaled(26,0,62,67)
6
+      MoveScaled(27,0,62,67)
7
       Tag = "User options"
8
       Expand = True
9
       Arrangement = Arrange.Vertical
10
xt7-player-mpv-0.16.384.tar.gz/.src/Form/HotKeys.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/HotKeys.class Changed
34
 
1
@@ -467,12 +467,12 @@
2
   
3
   Dim C, R, w1, w2 As Integer
4
 
5
-  If Exist(filename_fs) Then
6
+  If Exist(filename_fs, True) Then
7
     Try dblclick_fs_checkbox.value = (File.Load(filename_fs) = "TRUE")
8
       Else
9
     dblclick_fs_checkbox.value = True 'default value
10
   Endif
11
-  If Exist(filename_global_hk) Then
12
+  If Exist(filename_global_hk, True) Then
13
     Try checkboxenableglobalhotkeys.value = (File.Load(filename_global_hk) = "TRUE")
14
       Else
15
     checkboxenableglobalhotkeys.value = False 'default value
16
@@ -484,7 +484,7 @@
17
      HotKeysGrid.Columns[c].w = -1
18
   Next
19
   'Local Hotkeys
20
-  If Exist(filename) Then 
21
+  If Exist(filename, True) Then 
22
     If Stat(filename, True).size > 0 Then
23
         HotFile = Open filename For Read
24
         For c = 0 To HotKeysGrid.Columns.Count - 1
25
@@ -504,7 +504,7 @@
26
   Endif
27
   
28
   'Global Hotkeys grid:
29
-   If Exist(filename) Then 
30
+   If Exist(filename, True) Then 
31
     If Stat(filename, True).size > 0 Then
32
       GlobalHotFile = Open Globalfilename For Read
33
       For c = 0 To GlobalHotKeysGrid.Columns.Count - 1
34
xt7-player-mpv-0.16.384.tar.gz/.src/Form/NewChains.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/NewChains.class Changed
10
 
1
@@ -381,7 +381,7 @@
2
 
3
   ' 'alimiter lavfi
4
   AllParams.Add(["TITLE", "Keep input signal under a desired threshold - (ffmpeg >=3.0 only)", "alimiter0", ""])
5
-  AllParams.add(["RANGEFLOAT", "Input gain", "0.1", "2", "64", "alimiter1", ""])
6
+  AllParams.add(["RANGEFLOAT", "Input gain", "0.1", "5", "64", "alimiter1", ""])
7
   AllParams.add(["RANGEFLOAT", "output gain", "0.1", "1", "64", "alimiter2", ""])
8
   AllParams.add(["RANGEFLOAT", "limit", "0.1", "1", "1", "alimiter3", ""]) 
9
   AllParams.add(["RANGE", "attack", "1", "5", "80", "alimiter4", ""]) 
10
xt7-player-mpv-0.16.384.tar.gz/.src/Form/SubAndOsd.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/SubAndOsd.class Changed
14
 
1
@@ -141,8 +141,10 @@
2
   If (fullpath <> "") Then
3
     If MkvWorkaroundCHK.value Then    'http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1870
4
       If (Lower(file.Ext((fullpath))) = "mkv") Then
5
-        opts.Add(o("sub-file", SConv(fullpath)))
6
-        opts.Add(o("sub-ass", "no"))
7
+        opts.Add(o("sub-file", "'" & SConv(fullpath) & "'"))
8
+        'opts.Add(o("sub-ass", "no")) 'deprecated, use the following instead:
9
+              opts.Add(o("ass-style-override", "strip"))
10
+              opts.Add(o("embeddedfonts", "no"))
11
       Endif
12
     Endif
13
   Endif
14
xt7-player-mpv-0.16.384.tar.gz/.src/Form/zzzFake.class -> xt7-player-mpv-0.18.384.tar.gz/.src/Form/zzzFake.class Changed
11
 
1
@@ -15,7 +15,9 @@
2
     Try global.arg_profile = Args.get("p", "profile-temp", ("Use specified profile only for this session"), "profilename")
3
     Try global.arg_append = Args.Has("a", "append", ("Append the file to the playlist of a running instance"))
4
     Try global.arg_new_instance = Args.Has("n", "new-instance", ("Play in a new instance even if one is already running"))
5
+    Try global.arg_start_tray = Args.Has("t", "tray", ("Start minimized in the tray"))
6
     Try global.arg_debug = Args.Has("v", "verbose", ("Enable debug output"))
7
+    
8
   Try global.arg_file = Args.end()[0]
9
   
10
   If (global.arg_file <> "") And Left(global.arg_file) <> "/" Then
11
xt7-player-mpv-0.16.384.tar.gz/AA_ToDo -> xt7-player-mpv-0.18.384.tar.gz/AA_ToDo Changed
88
 
1
@@ -727,16 +727,6 @@
2
 ciò è fondamentale per youtube.
3
 
4
 
5
-
6
-Cambiamenti nel prossimo mpv:
7
-
8
---------------------------------------------------------------------------
9
---------------------------------------------------------------------------
10
-
11
-
12
-
13
-
14
-
15
 Nel panello di cambiamento automatico di velocità, mettere 2 checkbox:
16
   [x] Sto usando un'uscita ottica toslink
17
   [x] voglio codificare un ac3 quando cambio velocità.
18
@@ -774,65 +764,7 @@
19
 
20
 
21
 
22
-visualizzazione audio:
23
-
24
-spectrum sotto con onde sopra:
25
-10.5%cpu
26
-build/mpv /mnt/nas.crypt/Musica/BestOfBowie/CD1/01.Space.Oddity.ogg  --lavfi-complex='[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(ih/2):y=(0),crop=h=(ih/2):y=ih,colorlevels=romax=0.5[waves];[spectrum][waves]overlay[vo]' -ao null
27
-
28
-Spectrum con onde sovraimpresse:
29
-28%cpu
30
-build/mpv /mnt/nas.crypt/Musica/BestOfBowie/CD1/01.Space.Oddity.ogg  --lavfi-complex='[aid1]asplit=3 [azero][auno][ao];[azero]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x512:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h,scale=h=512:w=512:force_original_aspect_ratio=disable[spectrum];[auno]showwaves=s=512x512:mode=line:r=20,crop=h=(in_h):y=(in_h/2),colorlevels=romax=0.5,colorkey=0x000000:0.1:0.5[waves];[spectrum][waves]overlay[vo]' -ao null
31
-
32
-
33
-
34
-
35
-solo spectrum; l'immagine png è un gradiente da trasparente a nero.
36
-5,5%cpu
37
--lavfi-complex='[aid1]asplit [a][ao];[a]showspectrum=mode=separate:color=intensity:slide=scroll:s=4x256:color=intensity:win_func=blackman:mode=combined:saturation=1,crop=h=(in_h/1.5):y=in_h[spectrum];movie=/tmp/out.png,scale=h=(in_h/1.5)[pic]              ;[spectrum][pic]overlay[vo]'  --no-keepaspect
38
-
39
-frequenze
40
-7%cpu
41
---lavfi-complex='[aid1]asplit[ao][a1];[a1]showfreqs=s=256x256:mode=bar           :colors=#ff0000|#aa0000  :averaging=0.6
42
-
43
-Vectorscope sovraimpresso con hack per la sovraimpressione
44
-17% cpu
45
-build/mpv /mnt/nas.crypt/Musica/BestOfBowie/CD1/01.Space.Oddity.ogg  --lavfi-complex='[aid1]asplit=3[a1][a2][ao]; [a2]adrawgraph=bg=#00000000:size=256x256[blank];                            movie=/home/root/Gambas3/xt7-player-mpv-gtk/shade1.png,scale=256x256[pic]; [blank][pic]overlay[back] ; [a1]avectorscope=size=256x256[sp];[back][sp]overlay[vo]'
46
-
47
-
48
-filtri presenti solo in ffmpeg >=3.0:
49
- ... acompressor       A->A       Audio compressor.
50
- ... aemphasis         A->A       Audio emphasis.
51
- ... afftfilt          A->A       Apply arbitrary expressions to samples in 
52
- ... agate             A->A       Audio gate.
53
- ... alimiter          A->A       Audio lookahead limiter.
54
- ... allpass           A->A       Apply a two-pole all-pass filter.
55
- ... amerge            N->A       Merge two or more audio streams into a single multi-channel stream.
56
- T.. ametadata         A->A       Manipulate audio frame metadata.
57
- ..C anequalizer       A->N       Apply high-order audio parametric multi band equalizer.
58
- ... apulsator         A->A       Audio pulsator.
59
- ... arealtime         A->A       Slow down filtering to match realtime.
60
- ..C astreamselect     N->N       Select audio streams
61
- ... compensationdelay A->A       Audio Compensation Delay Line.
62
- ... extrastereo       A->A       Increase difference between stereo audio channels.
63
- ... sidechaingate     AA->A      Audio sidechain gate.
64
- ... stereotools       A->A       Apply various stereo tools.
65
- ... stereowiden       A->A       Apply stereo widening effect.
66
- ... tremolo           A->A       Apply tremolo effect.
67
- ... vibrato           A->A       Apply vibrato effect.
68
- TS. chromakey         V->V       Turns a certain color into transparency. Operates on YUV colors.
69
- T.. convolution       V->V       Apply convolution filter.
70
- T.. displace          VVV->V     Displace pixels.
71
- T.. maskedmerge       VVV->V     Merge first stream with second stream 
72
- T.. metadata          V->V       Manipulate video frame metadata.
73
- T.. nnedi             V->V       Apply neural network edge directed interpolation intra-only deinterlacer.
74
- ... realtime          V->V       Slow down filtering to match realtime.
75
- TS. selectivecolor    V->V       Apply CMYK adjustments to specific color ranges.
76
- T.. shuffleframes     V->V       Shuffle video frames.
77
- ..C streamselect      N->N       Select video streams
78
- T.. swaprect          V->V       Swap 2 rectangular objects in video.
79
- ... testsrc           |->V       Generate test pattern.
80
- ... testsrc2          |->V       Generate another test pattern.
81
- ... ahistogram        A->V       Convert input audio to histogram video output.
82
- ... showspectrumpic   A->V       Convert input audio to a spectrum video output single picture.
83
- ... spectrumsynth     VV->A      Convert input spectrum videos to audio output.
84
+
85
+Cambiamenti nel prossimo mpv:
86
+--------------------------------------------------------------------------
87
+  aspect: make video-zoom logarithmic: funzionano ancora il taglia bande nere e taglia metà bande nere?
88
xt7-player-mpv-0.18.384.tar.gz/README.md Added
58
 
1
@@ -0,0 +1,56 @@
2
+xt7-player-mpv
3
+======
4
+An open source gui to mpv.
5
+xt7-player-mpv aims to be an (in)complete graphical interface to mpv, focused on usability.
6
+
7
+It also provides extra features like youtube and shoutcast integration, dvbt,
8
+media tagging, library and playlist managment and a lot more.
9
+Visit: http://xt7-player.sourceforge.net/xt7forum/viewtopic.php?f=4&t=2
10
+for a screenshots tour.
11
+
12
+It is written and requires (the latest) Gambas3:
13
+http://gambas.sourceforge.net/en/main.html
14
+
15
+<p align="center">
16
+ <img src="http://wpage.unina.it/aorefice/sharevari/xt7-player-mpv-github-shots/main.jpg"</img>
17
+ <img src="http://wpage.unina.it/aorefice/sharevari/xt7-player-mpv-github-shots/music.jpg"</img>
18
+</p>
19
+
20
+
21
+Mandatory requirements:
22
+======
23
+  * Gambas 3 (usually the very latest version)
24
+  * Qt4
25
+  * mpv
26
+
27
+
28
+
29
+Optional requirements:
30
+======
31
+  * taglib to tag audio files and speed-up library syncronization:
32
+  http://developer.kde.org/~wheeler/taglib.html
33
+
34
+  * xbindkeys: to use global hotkeys
35
+  http://hocwp.free.fr/xbindkeys/
36
+
37
+  * scan and femon from LinuxTV dvb-apps to use dvbt features
38
+  http://www.linuxtv.org/wiki/index.php/LinuxTV_dvb-apps
39
+
40
+  * youtube-dl to watch and download youtube videos
41
+  http://rg3.github.com/youtube-dl/
42
+
43
+
44
+
45
+Compiling it:
46
+======
47
+```
48
+After you installed gambas 3, just checkout and compile xt7 that way:
49
+
50
+# git clone https://github.com/kokoko3k/xt7-player-mpv.git
51
+# cd xt7-player-mpv/
52
+# /path/to/gambas/binaries/gbc3 -e -a -g -t -p -m
53
+# /path/to/gambas/binaries/gba3
54
+# ./xt7-player-mpv.gambas
55
+```
56
+
57
+
58