Changes of Revision 9

xt7-player-mpv.changes Changed
x
 
1
@@ -1,4 +1,11 @@
2
 -------------------------------------------------------------------
3
+Sat Nov  5 19:10:14 UTC 2016 - avvissu@yandex.by
4
+
5
+- Update to 0.21.384:
6
+  * see: /usr/share/doc/packages/xt7-player-mpv/CHANGELOG_GIT
7
+- Switch to Qt5
8
+
9
+-------------------------------------------------------------------
10
 Mon Sep  5 12:35:09 UTC 2016 - avvissu@yandex.by
11
 
12
 - Update to 0.20.384:
13
xt7-player-mpv.spec Changed
75
 
1
@@ -17,7 +17,7 @@
2
 
3
 
4
 Name:           xt7-player-mpv
5
-Version:        0.20.384
6
+Version:        0.21.384
7
 Release:        0
8
 Summary:        Qt/Gambas gui to mpv
9
 License:        GPL-2.0+
10
@@ -25,7 +25,7 @@
11
 Url:            http://xt7-player.sourceforge.net/xt7forum/
12
 Source0:        https://github.com/kokoko3k/xt7-player-mpv/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
13
 BuildRequires:  desktop-file-utils
14
-BuildRequires:  gambas3-devel >= 3.8.4
15
+BuildRequires:  gambas3-devel >= 3.9.1
16
 BuildRequires:  gambas3-gb-args
17
 BuildRequires:  gambas3-gb-compress
18
 BuildRequires:  gambas3-gb-db
19
@@ -42,8 +42,6 @@
20
 BuildRequires:  gambas3-gb-image-io
21
 BuildRequires:  gambas3-gb-net
22
 BuildRequires:  gambas3-gb-net-curl
23
-BuildRequires:  gambas3-gb-qt4
24
-BuildRequires:  gambas3-gb-qt4-ext
25
 BuildRequires:  gambas3-gb-settings
26
 BuildRequires:  gambas3-gb-signal
27
 BuildRequires:  gambas3-gb-util-web
28
@@ -70,15 +68,13 @@
29
 Requires:       gambas3-gb-image
30
 Requires:       gambas3-gb-net
31
 Requires:       gambas3-gb-net-curl
32
-Requires:       gambas3-gb-qt4
33
-Requires:       gambas3-gb-qt4-ext
34
 Requires:       gambas3-gb-settings
35
 Requires:       gambas3-gb-signal
36
 Requires:       gambas3-gb-util-web
37
 Requires:       gambas3-gb-web
38
 Requires:       gambas3-gb-libxml
39
 Requires:       gambas3-runtime >= 3.8.4
40
-Requires:       mpv >= 0.20.0
41
+Requires:       mpv >= 0.21.0
42
 Requires:       wget
43
 Requires:       youtube-dl
44
 Recommends:     dvb
45
@@ -87,6 +83,17 @@
46
 Recommends:     xbindkeys
47
 Recommends:     xdg-utils
48
 BuildArch:      noarch
49
+%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120100
50
+BuildRequires:  gambas3-gb-qt5
51
+BuildRequires:  gambas3-gb-qt5-ext
52
+Requires:       gambas3-gb-qt5
53
+Requires:       gambas3-gb-qt5-ext
54
+%else
55
+BuildRequires:  gambas3-gb-qt4
56
+BuildRequires:  gambas3-gb-qt4-ext
57
+Requires:       gambas3-gb-qt4
58
+Requires:       gambas3-gb-qt4-ext
59
+%endif
60
 
61
 %description
62
 Aims to be an (in)complete graphical interface to mpv, focused on
63
@@ -97,6 +104,11 @@
64
 %prep
65
 %setup -q
66
 
67
+# Build with Qt4
68
+%if 0%{?suse_version} <= 1320 && !0%{?sle_version}
69
+sed -i 's/gb\.qt5/gb.qt4/' .project
70
+%endif
71
+
72
 %build
73
 gbc3 -e -a -g -t -p -m
74
 gba3
75
xt7-player-mpv-0.20.384.tar.gz/killer.sh Deleted
30
 
1
@@ -1,28 +0,0 @@
2
-#!/bin/bash
3
-
4
-#echo 'when $1 dies, $2 will be killed'
5
-
6
-if [ -z "$1" ] ; then exit 0 ; fi
7
-if [ -z "$2" ] ; then exit 0 ; fi
8
-
9
-xt7_pid=$1
10
-mpv_pid=$2
11
-
12
-xt7_cmd=$(cat /proc/$xt7_pid/cmdline)
13
-mpv_cmd=$(cat /proc/$mpv_pid/cmdline)
14
-
15
-#Wait while xt7 is alive:
16
-while [ "$xt7_cmd" == "$(cat /proc/$xt7_pid/cmdline)" ] ; do
17
-    #echo xt7 pid $xt7_pid is alive
18
-    if [ "$mpv_cmd" != "$(cat /proc/$mpv_pid/cmdline)" ]; then
19
-      #echo mpv pid $mpv_pid is dead, exiting now
20
-      exit 0
21
-    fi
22
-    sleep 10
23
-done
24
-
25
-echo "$1" is dead
26
-if [ "$mpv_cmd" == "$(cat /proc/$mpv_pid/cmdline)" ]; then
27
-    echo killing $mpv_pid
28
-    kill $mpv_pid ; sleep 1 ; kill -9 $mpv_pid
29
-fi
30
xt7-player-mpv-0.20.384.tar.gz/.lang/it.mo -> xt7-player-mpv-0.21.384.tar.gz/.lang/it.mo Changed
xt7-player-mpv-0.20.384.tar.gz/.lang/it.po -> xt7-player-mpv-0.21.384.tar.gz/.lang/it.po Changed
201
 
1
@@ -1,8 +1,8 @@
2
 #, fuzzy
3
 msgid ""
4
 msgstr ""
5
-"Project-Id-Version: xt7-player-mpv 3.8.4\n"
6
-"PO-Revision-Date: 2016-07-26 14:18 UTC\n"
7
+"Project-Id-Version: xt7-player-mpv 3.9.1\n"
8
+"PO-Revision-Date: 2016-10-03 06:47 UTC\n"
9
 "Last-Translator: kokoko3k <kokoko3k@gmail.com>\n"
10
 "Language: it\n"
11
 "MIME-Version: 1.0\n"
12
@@ -29,7 +29,7 @@
13
 msgid "Click for a list of URI prefixes"
14
 msgstr "Mostra la lista dei prefissi per le URI"
15
 
16
-#: AddUriForm.form:51 FMain.class:8984
17
+#: AddUriForm.form:51 FMain.class:9020
18
 msgid "cdda://"
19
 msgstr "-"
20
 
21
@@ -169,7 +169,7 @@
22
 msgid "Add the selected URI to Collection and/or Playlist"
23
 msgstr "Aggiungi l'URI selezionata alla collezione/playlist"
24
 
25
-#: AddUriForm.form:152 FMain.class:9470 GeneralOptions.form:1077
26
+#: AddUriForm.form:152 FMain.class:9510 GeneralOptions.form:1077
27
 msgid "Add"
28
 msgstr "Aggiungi"
29
 
30
@@ -177,15 +177,15 @@
31
 msgid "Close"
32
 msgstr "Chiudi"
33
 
34
-#: AlbumView.class:92 FMain.class:1396
35
+#: AlbumView.class:94 FMain.class:1408
36
 msgid "Unknown"
37
 msgstr "Sconosciuto"
38
 
39
-#: AlbumView.class:184
40
+#: AlbumView.class:186
41
 msgid "more than 50 tracks!"
42
 msgstr "più di 50 tracce!"
43
 
44
-#: AlbumView.class:245
45
+#: AlbumView.class:247
46
 msgid "Unknown Year"
47
 msgstr "Anno sconosciuto"
48
 
49
@@ -225,7 +225,7 @@
50
 msgid "Choose quality level."
51
 msgstr "Scegli il livello di qualità"
52
 
53
-#: AudioConvert.class:88
54
+#: AudioConvert.class:89
55
 msgid "Seems a youtube link, getting real stream url and title..."
56
 msgstr "Sembra un collegamento a youtube, individuazione dell' indirizzo reale e del titolo in corso..."
57
 
58
@@ -233,31 +233,31 @@
59
 msgid "Title"
60
 msgstr "Titolo"
61
 
62
-#: AudioConvert.class:94 FMain.class:9958
63
+#: AudioConvert.class:95 FMain.class:9999
64
 msgid "Unable to get the real stream url"
65
 msgstr "Non posso recuperare l'url reale del flusso"
66
 
67
-#: AudioConvert.class:125
68
+#: AudioConvert.class:126
69
 msgid "Source:"
70
 msgstr "Sorgente:"
71
 
72
-#: AudioConvert.class:126
73
+#: AudioConvert.class:127
74
 msgid "Destination:"
75
 msgstr "Destinazione:"
76
 
77
-#: AudioConvert.class:131
78
+#: AudioConvert.class:132
79
 msgid "User stopped."
80
 msgstr "Fermato dall'utente."
81
 
82
-#: AudioConvert.class:135
83
+#: AudioConvert.class:136
84
 msgid "Skipped."
85
 msgstr "Saltato."
86
 
87
-#: AudioConvert.class:146
88
+#: AudioConvert.class:147
89
 msgid "Done."
90
 msgstr "Fatto."
91
 
92
-#: AudioConvert.class:171
93
+#: AudioConvert.class:172
94
 msgid "Updating Library/Playlist"
95
 msgstr "Aggiornamento della Libreria/Playlist"
96
 
97
@@ -301,11 +301,11 @@
98
 msgid "Skip current"
99
 msgstr "Salta al prossimo"
100
 
101
-#: AudioConvert.form:174 DVBTuner.form:78
102
+#: AudioConvert.form:174 DVBTuner.form:82
103
 msgid "Start"
104
 msgstr "Avvia"
105
 
106
-#: AudioForm.class:12 FMain.form:691 FormLyrics.form:91 Searchfields.form:58
107
+#: AudioForm.class:12 FMain.form:691 FormLyrics.form:94 Searchfields.form:58
108
 msgid "Artist"
109
 msgstr "Artista"
110
 
111
@@ -313,11 +313,11 @@
112
 msgid "Album"
113
 msgstr "Album"
114
 
115
-#: AudioForm.class:14 FMain.form:2675 Searchfields.form:90
116
+#: AudioForm.class:14 FMain.form:2674 Searchfields.form:90
117
 msgid "Year"
118
 msgstr "Anno"
119
 
120
-#: AudioForm.class:16 FMain.form:2743 Searchfields.form:119
121
+#: AudioForm.class:16 FMain.form:2742 Searchfields.form:119
122
 msgid "Comment"
123
 msgstr "Commento"
124
 
125
@@ -325,7 +325,7 @@
126
 msgid "Lyrics"
127
 msgstr "Testi"
128
 
129
-#: AudioForm.class:24 FMain.form:2211
130
+#: AudioForm.class:24 FMain.form:2210
131
 msgid "Radio"
132
 msgstr "Radio"
133
 
134
@@ -333,7 +333,7 @@
135
 msgid "Name"
136
 msgstr "Nome"
137
 
138
-#: AudioForm.class:26 FMain.class:8973 Searchfields.form:104
139
+#: AudioForm.class:26 FMain.class:9009 Searchfields.form:104
140
 msgid "Length"
141
 msgstr "Durata"
142
 
143
@@ -381,7 +381,7 @@
144
 msgid ":"
145
 msgstr "-"
146
 
147
-#: ChooseAspect.form:53 GeneralOptions.form:2419
148
+#: ChooseAspect.form:53 GeneralOptions.form:2420
149
 msgid "="
150
 msgstr "-"
151
 
152
@@ -397,7 +397,7 @@
153
 msgid "ShutDown CountDown..."
154
 msgstr "Conto alla rovescia per lo spegnimento."
155
 
156
-#: CountDown.form:17 NewChains.class:473
157
+#: CountDown.form:17 NewChains.class:478
158
 msgid "Abort"
159
 msgstr "Annulla"
160
 
161
@@ -433,19 +433,19 @@
162
 msgid "Try to use less strict terms, remove symbols and so on..."
163
 msgstr "Prova ad usare termini meno stretti, rimuovi i simboli e così via..."
164
 
165
-#: CoverManager.class:913
166
+#: CoverManager.class:941
167
 msgid "Load a Jpg cover image"
168
 msgstr "Carica una copertina in formato jpg"
169
 
170
-#: CoverManager.class:929
171
+#: CoverManager.class:957
172
 msgid "Error while loading the picture"
173
 msgstr "Errore durante il caricamento dell' immagine"
174
 
175
-#: CoverManager.class:961 FMain.class:7893
176
+#: CoverManager.class:991 FMain.class:7929
177
 msgid "\nso you are going to set a cover for this particular file/stream"
178
 msgstr "\nQuindi la copertina che imposterai sarà solo per questo file o stream"
179
 
180
-#: CoverManager.class:962 FMain.class:7894
181
+#: CoverManager.class:992 FMain.class:7930
182
 msgid "Artist Or Album tag information are required to set a cover"
183
 msgstr "Le tag artista o album sono necessarie per impostare una copertina"
184
 
185
@@ -477,11 +477,11 @@
186
 msgid "Load cover"
187
 msgstr "Carica da disco"
188
 
189
-#: CoverManager.form:178 GeneralOptions.form:2803
190
+#: CoverManager.form:178 GeneralOptions.form:2804
191
 msgid "128"
192
 msgstr "-"
193
 
194
-#: CoverManager.form:178 GeneralOptions.form:2803
195
+#: CoverManager.form:178 GeneralOptions.form:2804
196
 msgid "160"
197
 msgstr "-"
198
 
199
@@ -509,7 +509,7 @@
200
 msgid "Set Cover"
201
xt7-player-mpv-0.20.384.tar.gz/.project -> xt7-player-mpv-0.21.384.tar.gz/.project Changed
40
 
1
@@ -1,12 +1,12 @@
2
 # Gambas Project File 3.0
3
-# Compiled with Gambas 3.8.4
4
+# Compiled with Gambas 3.9.1
5
 Title=xt7-player
6
 Startup=StartClass
7
 Icon=xt7-player-mpv.png
8
-Version=0.20.384
9
+Version=0.21.392
10
 Component=gb.args
11
 Component=gb.image
12
-Component=gb.qt4
13
+Component=gb.qt5
14
 Component=gb.form
15
 Component=gb.compress
16
 Component=gb.dbus
17
@@ -19,12 +19,13 @@
18
 Component=gb.libxml
19
 Component=gb.net
20
 Component=gb.net.curl
21
-Component=gb.qt4.ext
22
+Component=gb.qt5.ext
23
 Component=gb.signal
24
 Component=gb.web
25
 Description="Xt7-Player, an (almost) complete mpv gui"
26
 Authors="Antonio Orefice <xt7player@gmail.com>"
27
-Arguments="-v"
28
+Arguments=[["/mnt/nas.crypt/Musica/BestOfBowie/CD1/01.Space.Oddity.ogg","-v"],["-v"]]
29
+CurrentArgument=2
30
 TabSize=2
31
 Translate=1
32
 Language=en
33
@@ -66,5 +67,5 @@
34
 Groups=ubuntu:"video"
35
 Tags=Multimedia,Music,Video
36
 Dependencies=mpv,taglib,wget,youtube-dl,
37
-GambasVersion=3.8
38
+GambasVersion=3.9
39
 CreateMenu=1
40
xt7-player-mpv-0.20.384.tar.gz/.settings -> xt7-player-mpv-0.21.384.tar.gz/.settings Changed
201
 
1
@@ -1,2472 +1,140 @@
2
-[Bookmarks]
3
-FMain=[7697]
4
-GeneralOptions=[1251]
5
-
6
 [Breakpoints]
7
-Count=2
8
-Breakpoint[1]="YoutubeClass.277"
9
-Breakpoint[2]="YoutubeClass.283"
10
+Count=0
11
 
12
 [DebugWindow]
13
 Count=0
14
 
15
-[DebugWindow/(Dir(Directory, "*.BMP"))]
16
-Geometry=[45,0,224,280]
17
-
18
-[DebugWindow/AC3s]
19
-Geometry=[928,154,344,344]
20
-
21
-[DebugWindow/ACheckBox]
22
-Geometry=[1280,0,299,639]
23
-
24
-[DebugWindow/ACheckbox]
25
-Geometry=[1280,0,210,724]
26
-
27
-[DebugWindow/AComment]
28
-Geometry=[1280,0,224,280]
29
-
30
-[DebugWindow/AFiltersCfg]
31
-Geometry=[52,0,210,920]
32
-
33
-[DebugWindow/AlbumGridView]
34
-Geometry=[47,0,349,788]
35
-
36
-[DebugWindow/AlbumGridView.Current]
37
-Geometry=[51,0,508,410]
38
-
39
-[DebugWindow/AlbumView]
40
-Geometry=[51,0,698,661]
41
-
42
-[DebugWindow/AllParams]
43
-Geometry=[0,0,301,301]
44
-
45
-[DebugWindow/AllParams[1]]
46
-Geometry=[0,0,301,301]
47
-
48
-[DebugWindow/AllowedContainers]
49
-Geometry=[0,0,210,210]
50
-
51
-[DebugWindow/AlreadyPlayed]
52
-Geometry=[0,0,344,344]
53
-
54
-[DebugWindow/AlreadyPlayedString]
55
-Geometry=[0,0,344,344]
56
+[DebugWindow/Last]
57
+Geometry=[2040,310,224,280]
58
 
59
-[DebugWindow/AnHBOX]
60
+[DebugWindow/NewChains.parse_drivers(False)]
61
 Geometry=[1280,0,224,280]
62
 
63
-[DebugWindow/AnHBox]
64
-Geometry=[47,0,344,344]
65
-
66
-[DebugWindow/Application]
67
-Geometry=[0,0,344,344]
68
-
69
-[DebugWindow/Arrange]
70
-Geometry=[0,40,301,301]
71
-
72
-[DebugWindow/AudioChainBox.Children]
73
-Geometry=[52,0,210,210]
74
-
75
-[DebugWindow/Audios]
76
-Geometry=[899,0,373,997]
77
-
78
-[DebugWindow/Audiotag]
79
-Geometry=[0,0,520,375]
80
-
81
-[DebugWindow/ChainFilter]
82
-Geometry=[0,0,344,344]
83
-
84
-[DebugWindow/Chains]
85
-Geometry=[0,0,344,344]
86
-
87
-[DebugWindow/Chains.controls]
88
-Geometry=[0,0,301,301]
89
-
90
-[DebugWindow/ChangedForms]
91
-Geometry=[47,-3,210,210]
92
-
93
-[DebugWindow/ChannelNode]
94
-Geometry=[0,0,344,344]
95
-
96
-[DebugWindow/ChannelNode.Children[j]]
97
-Geometry=[0,0,344,384]
98
-
99
-[DebugWindow/ChannelNode.Children[j].Attributes]
100
-Geometry=[0,0,344,344]
101
-
102
-[DebugWindow/Channelnode.Children[j].Attributes]
103
-Geometry=[0,0,344,344]
104
-
105
-[DebugWindow/Channelnode.Children[t].Attributes]
106
-Geometry=[0,0,344,344]
107
-
108
-[DebugWindow/Collection]
109
-Geometry=[1280,-3,224,280]
110
-
111
-[DebugWindow/Color]
112
-Geometry=[0,0,301,301]
113
-
114
-[DebugWindow/Color[img.Pixels[i]]]
115
-Geometry=[1280,0,210,536]
116
-
117
-[DebugWindow/ColumnView(FileView1.Children[1]).Columns]
118
-Geometry=[726,312,564,770]
119
-
120
-[DebugWindow/ColumnView(FileView1.Children[1]).Item]
121
-Geometry=[726,312,564,770]
122
-
123
-[DebugWindow/ColumnView(FileView1.Children[1]).Proxy]
124
-Geometry=[604,227,564,770]
125
-
126
-[DebugWindow/ColumnView(fileview1.Children[1]).Item]
127
-ShowHidden=True
128
-Geometry=[596,244,481,686]
129
-
130
-[DebugWindow/Columnindex]
131
-Geometry=[325,-20,210,210]
132
-
133
-[DebugWindow/ConfFile]
134
-Geometry=[0,0,210,210]
135
-
136
-[DebugWindow/Container]
137
-Geometry=[0,0,301,301]
138
-
139
-[DebugWindow/ControlPanel]
140
-Geometry=[362,125,210,778]
141
-
142
-[DebugWindow/ControlPanel.Children]
143
-Geometry=[1294,14,210,778]
144
-
145
-[DebugWindow/ControlPanel.Parent]
146
-Geometry=[376,139,210,778]
147
-
148
-[DebugWindow/ControlPanelright.Children]
149
-Geometry=[47,0,210,210]
150
-
151
-[DebugWindow/CoverCacheList]
152
-Geometry=[51,587,660,344]
153
-
154
-[DebugWindow/CoverCacheList[cachefile]]
155
-Geometry=[47,-3,210,210]
156
-
157
-[DebugWindow/CoverManager]
158
-Geometry=[48,-4,210,210]
159
-
160
-[DebugWindow/CoverManager.Shadowed(thumb)]
161
-Geometry=[1280,-3,210,210]
162
-
163
-[DebugWindow/CoverQueue]
164
-Geometry=[232,119,783,782]
165
-
166
-[DebugWindow/CoverQueue.Pop()]
167
-Geometry=[51,0,210,210]
168
-
169
-[DebugWindow/CurrentParams]
170
-Geometry=[0,0,301,301]
171
-
172
-[DebugWindow/DestList]
173
-Geometry=[0,41,344,344]
174
-
175
-[DebugWindow/DestList.Ptable]
176
-Geometry=[0,0,301,301]
177
-
178
-[DebugWindow/DestinationObj]
179
-Geometry=[51,0,301,301]
180
-
181
-[DebugWindow/DestinationObj.children]
182
-Geometry=[1280,0,210,210]
183
-
184
-[DebugWindow/Dialog]
185
-Geometry=[51,0,344,344]
186
-
187
-[DebugWindow/Dialog.filter]
188
-Geometry=[0,35,344,344]
189
-
190
-[DebugWindow/Dir(DirToAdd).Sort()]
191
-Geometry=[47,0,588,465]
192
-
193
-[DebugWindow/Dir(Directory, "*.MP3")]
194
-Geometry=[1280,0,210,210]
195
-
196
-[DebugWindow/Dir(ScrollThumbsPath)]
197
-Geometry=[47,0,210,210]
198
-
199
-[DebugWindow/Dir(ScrollThumbsPath).sort()]
200
-Geometry=[47,0,210,210]
201
xt7-player-mpv-0.20.384.tar.gz/.src/0_Moduli/Global.module -> xt7-player-mpv-0.21.384.tar.gz/.src/0_Moduli/Global.module Changed
171
 
1
@@ -25,6 +25,7 @@
2
 Public LSyncingMessage As String 
3
 Public AppName As String 
4
 Public ConfPath As String 
5
+Public TmpDir As String
6
 Public CustomBindKeys As String 
7
 Public XbindkeysBIN As String 
8
 Public SocketFile As String 
9
@@ -64,6 +65,8 @@
10
 Public arg_debug As Boolean = False 
11
 Public arg_new_instance As Boolean = False 
12
 Public arg_start_tray As Boolean = False
13
+Public mpv_version As String = ""
14
+
15
 
16
 Public Sub init()
17
   'FixFormNames() 'needed with gambas 3.4.1; form names arent set by default!
18
@@ -83,7 +86,8 @@
19
   'Please terminate ALLFILTERS with ";"!
20
   'ALLFilters  '= Videofilter & ";" & AudioFilter & ";" & UncommonVideoFilters & ";" & UncommonAudiofilters
21
   quotes = "\""       'double quotes in strings
22
-  aboutmessage = "\n" & "xt7-Player-mpv" & " " & Application.version & (" by Antonio Orefice.\nxt7player@gmail.com\n\nThanks to Benoît Minisini for Gambas.") & "\n\n" & "I92guboj - Spanish translation \n" & "Wackenroader - Brazilian Portuguese translation \n" & "Shimingzhou - simplified Chinese translation\n" & "Jacky Bamière - French translation\n" & "VictorR2007 - Russian Translation\n" & "SymbianFlo - Testing and 'spiritual' support\n" & "NickiNicki - Bug reports\n" & "Eloaders and all the contributors\nat https://launchpad.net/xt7-player \n" 
23
+  aboutmessage = "\n" & "xt7-Player-mpv" & " " & Application.version & (" by Antonio Orefice.\nxt7player@gmail.com\n\nThanks to Benoît Minisini for Gambas.") & "\n\n" & "I92guboj - Spanish translation \n" & "Wackenroader - Brazilian Portuguese translation \n" & "Shimingzhou - simplified Chinese translation\n" & "Jacky Bamière - French translation\n" & "VictorR2007 - Russian Translation\n" & "SymbianFlo - Testing and 'spiritual' support\n" & "NickiNicki - Bug reports\n" 
24
+  aboutmessage &= "'Argon-' for the nice lua stats script\n " 
25
   Alternatecolor = &EEEEFF&
26
   LSyncing = False 'is true when library is syncing.
27
   LSyncingMessage = ("Syncing Library, please wait...")
28
@@ -118,6 +122,7 @@
29
   SettingsFileName = "default"
30
   MaxHistory = 15
31
   DelayLoadStates = New Timer As "DelayLoadStates"
32
+  TmpDir = File.Dir(Temp())
33
 End
34
 
35
 
36
@@ -455,6 +460,7 @@
37
     If l Like "*=*" Then 
38
       opt = Left(l, InStr(l, "=") - 1)
39
       data = Right(l, Len(l) - Len(opt) - 1)
40
+      If data = "" Then data = Chr(8)
41
       out[opt] = data
42
         Else
43
       out[l] = Chr(8)
44
@@ -463,40 +469,46 @@
45
   Return out
46
 End
47
 
48
+
49
+Public Struct MpvOption
50
+  name As String
51
+  data As String
52
+End Struct
53
+
54
 Public Sub save_cached_options(ProfileName As String)
55
   'save mpv options in a profile format compatible with mpv
56
   Dim cached_file_name As String = global.confpath & "/" & Profilename & ".cached"
57
   Dim cached_data, data As String
58
+  Dim driver_opts As MpvOption[]
59
+  Dim opt As MpvOption
60
 
61
   If Not Exist(global.confpath, True) Then 
62
     global.myDebug("Configuration directory not found; something is going VERY wrong.")
63
     Return
64
   Endif
65
 
66
-    ' opts = fmain.user_options()
67
-    ' For Each data In opts
68
-    '   If data <> Chr(8) Then
69
-    '     cached_data &= opts.key & "=" & data & "\n"
70
-    '       Else
71
-    '     cached_data &= opts.key & "\n"
72
-    '   Endif
73
-    ' Next
74
-    ' cached_data &= "volume=" & fmain.Initialvolume() & "\n"
75
-
76
     NewChains.FirstLoadIfNeeded()
77
 
78
-    data = NewChains.parse_drivers(False)
79
-    If data <> "" Then cached_data &= "vo=" & data & "\n"
80
-    
81
-    data = NewChains.parse_drivers(True)
82
-    If data <> "" Then cached_data &= "ao=" & data & "\n"
83
+    driver_opts = NewChains.parse_drivers(False)
84
+
85
+    If driver_opts <> Null Then
86
+      For Each opt In driver_opts
87
+        cached_data &= opt.name & "=" & opt.data & "\n"
88
+      Next
89
+      driver_opts.Clear
90
+    Endif
91
+
92
+    driver_opts = NewChains.parse_drivers(True)
93
+    If driver_opts <> Null Then
94
+      For Each opt In driver_opts
95
+        cached_data &= opt.name & "=" & opt.data & "\n"
96
+      Next
97
+    Endif
98
 
99
     data = NewChains.parse_filters(False)
100
     If data <> "" Then cached_data &= "vf-add=" & data & "\n"
101
-
102
     data = NewChains.parse_filters(True)
103
     If data <> "" Then cached_data &= "af-add=" & data & "\n"
104
-
105
     File.Save(cached_file_name, cached_data)
106
 End
107
 
108
@@ -1218,3 +1230,62 @@
109
   If Error Then global.myDebug("Error while doing pTask.Stop()")
110
 End
111
 
112
+Public Function Dedupe(sDir As String) As Boolean
113
+  Dim sFiles As String
114
+  Dim files As New String[]
115
+  Dim i, j As Integer
116
+  Dim equal As String
117
+  
118
+  'find files that are not links and sort them by size.
119
+  Shell "find " & sDir & " -type f -print0 | xargs -0 du -b | sort -rn|cut -d '/' -f 2-|awk '{print \"/\" $0}'" To sFiles
120
+  files = Split(sFiles, "\n", "", True)
121
+  i = 0
122
+  j = 0
123
+  While i < files.max
124
+    Repeat
125
+      Inc j
126
+      If j > files.max Then Return
127
+      equal = EqualFiles(files[i], files[j])
128
+      If equal = "True" Then
129
+        Kill files[j]
130
+        Link files[i] To files[j]
131
+      Endif
132
+    Until equal = "DIFSIZE"
133
+    i = j
134
+  Wend
135
+  
136
+End
137
+
138
+Public Function EqualFiles(snew As String, sold As String) As String
139
+  Dim file1, file2 As Stream
140
+  Dim s1, s2 As String  
141
+  Dim res As String = "True"
142
+  Dim blocksize As Integer = 2048
143
+  Dim size1, size2 As Integer
144
+  
145
+  size1 = Stat(snew).size 
146
+  size2 = Stat(sold).Size
147
+  
148
+  If size1 <> size2 Then Return "DIFSIZE"
149
+ 
150
+  If size1 < blocksize Then blocksize = size1
151
+  
152
+  If res = "True" Then    
153
+    file1 = Open snew For Read
154
+    file2 = Open sold For Read
155
+    Do
156
+      Read #file1, s1, - blocksize
157
+      Read #file2, s2, - blocksize
158
+      If s1 <> s2 Then
159
+        res = "False"
160
+        Break
161
+      Endif
162
+      If Len(s1) <> 2048 Then Break 
163
+    Loop
164
+      
165
+    Close #file1
166
+    Close #file2
167
+  Endif
168
+     
169
+  Return res
170
+End
171
xt7-player-mpv-0.20.384.tar.gz/.src/0_Moduli/HotKeysHelper.module -> xt7-player-mpv-0.21.384.tar.gz/.src/0_Moduli/HotKeysHelper.module Changed
10
 
1
@@ -68,7 +68,7 @@
2
 End
3
 
4
 Private Sub StoreHotKey() 
5
-  Dim keycode As Integer
6
+
7
   Dim keytext As String
8
   Dim out As String
9
 
10
xt7-player-mpv-0.20.384.tar.gz/.src/0_Moduli/MyDialog.class -> xt7-player-mpv-0.21.384.tar.gz/.src/0_Moduli/MyDialog.class Changed
11
 
1
@@ -59,6 +59,9 @@
2
 
3
 Private Sub should_use_kdialog() As Boolean
4
   Dim kdialog As String
5
+  
6
+  Return False
7
+  
8
   If Application.Env["XDG_CURRENT_DESKTOP"] = "KDE" Or Lower(Application.Env["DESKTOP_SESSION"]) = "KDE" Then
9
     If Application.Env["KDE_SESSION_VERSION"] = "4" And Application.Env["KDE_FULL_SESSION"] = "true" Then
10
       Shell "which kdialog" To kdialog
11
xt7-player-mpv-0.20.384.tar.gz/.src/Classi/AlbumView.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Classi/AlbumView.class Changed
24
 
1
@@ -14,12 +14,13 @@
2
   Dim i As Integer
3
   Dim Startpos, MidPos, EndPos As Integer
4
   Dim MyValue As String
5
+
6
   For i = 0 To localtable.count - 1
7
     StartPos = InStr(localtable[i], ts & Field)
8
     MidPos = InStr(localtable[i], ts, StartPos + 1)
9
     EndPos = InStr(localtable[i], ts, Midpos + 1)
10
     MyValue = Mid(localtable[i], Startpos, Endpos - startpos)
11
-    Replace(localtable[i], MyValue, "")
12
+    localtable[i] = Replace(localtable[i], MyValue, "")
13
     localtable[i] = MyValue & localtable[i]
14
   Next 'i
15
 
16
@@ -85,6 +86,7 @@
17
 
18
   'remove duplicates album
19
   DoSortTable("Album")
20
+  
21
   i = localtable.count - 1
22
   If localtable.count > 1 Then
23
     Repeat 'remove duplicate albums
24
xt7-player-mpv-0.20.384.tar.gz/.src/Classi/FloatSpinBox.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Classi/FloatSpinBox.class Changed
11
 
1
@@ -33,9 +33,6 @@
2
 
3
 
4
 Public Sub _NEW()
5
-  Dim hpic_up As Picture
6
-  Dim coordinate As Integer[]
7
-
8
 
9
   Super.Border = Border.None
10
   MyValueBox = New ValueBox(Me) As "MyValueBox"
11
xt7-player-mpv-0.20.384.tar.gz/.src/Classi/MplayerClass.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Classi/MplayerClass.class Changed
201
 
1
@@ -19,23 +19,37 @@
2
 
3
 Private Const play_initialized_str As String = "MPV_PLAY_IS_FULLY_INITIALIZED"
4
 
5
-
6
 Private stopping As Boolean = False
7
-
8
 Public pausing As Boolean = False
9
 Public return_value As Integer = 0 'playerprocess return value
10
 
11
 ' Private Takingscreenshot As Boolean = False
12
 'Private lastscreenshot As String = ""
13
 Public last_media As String = ""
14
-
15
 Public commandline As String = ""
16
-
17
 Private InputPipe As String = ""
18
-
19
 Public user_stopped As Boolean = False
20
-
21
 Public volumeproperty As String = "volume"
22
+Public Precommand As String = ""
23
+Public Postcommand As String = ""
24
+Public CurrentOptions As String = ""
25
+Public AVcodecs As String = ""
26
+Public AudioLanguages As String = "\"\""
27
+Public SubLanguages As String = "\"\""
28
+Public Subfile As String = ""
29
+Public Quick As Boolean = False                         'Skip mediainfo code
30
+Public osdlevel As String = ""
31
+Public lua_scripts As New String[]
32
+
33
+Public Function version(Optional full_line As Boolean = False) As String
34
+  Dim out As String
35
+  Shell executable() & " --version" To out
36
+  If full_line Then Return out
37
+  out = Split(out, " ", "", True)[1]
38
+  Return out
39
+End
40
+
41
+
42
 
43
 Public Function executable(Optional timeout As Integer = -1) As String
44
   Dim out As String
45
@@ -58,18 +72,6 @@
46
   Return out
47
 End
48
 
49
-Public Precommand As String = ""
50
-Public Postcommand As String = ""
51
-
52
-Public CurrentOptions As String = ""
53
-
54
-Public AVcodecs As String = ""
55
-
56
-Public AudioLanguages As String = "\"\""
57
-Public SubLanguages As String = "\"\""
58
-Public Subfile As String = ""
59
-Public Quick As Boolean = False                         'Skip mediainfo code
60
-
61
 
62
 
63
 Private Sub ClearMediaProperties()
64
@@ -92,12 +94,16 @@
65
   prop["cddbtracks"] = New String[] 
66
 End
67
 
68
+Public Struct MpvOptionInfo 
69
+  name As String
70
+  type As String
71
+  default_value As Variant
72
+  min As Variant
73
+  max As Variant
74
+  choices As String[]
75
+End Struct
76
 
77
-'Realtime Media variables
78
-
79
-
80
-Public osdlevel As String = ""
81
-
82
+Public MpvOptionsInfo As New Collection[]
83
 
84
 
85
 Public Function FillMultitracks(Optional force_audio_only As Boolean = False)
86
@@ -264,6 +270,7 @@
87
   Dim out As String
88
   Exec ["sh", "-c", "ffmpeg -filters | grep ladspa"] To out
89
   Return Trim(out) <> ""
90
+  
91
 End
92
 
93
 
94
@@ -325,9 +332,11 @@
95
   Return 0
96
 End
97
 
98
-
99
 Public mpvoptions As New Collection
100
 
101
+
102
+
103
+
104
 Public Sub set_option(name As String, data As String, Optional allow_dupes As Boolean = True)
105
  'chr(8) is used instead of null because the collection doesn't keep null values
106
   If allow_dupes Then
107
@@ -375,16 +384,15 @@
108
         Print
109
         unset_option("audio-channels", return_opts)
110
       Endif
111
-        Else If return_opts.Key = "vo" Then
112
-          If data Like "*opengl:*interpolation*" Then
113
+        Else If return_opts.Key = "interpolation" Then
114
+          If data = "yes" Then
115
             Print "It seems that user requested opengl temporal interpolation; setting --video-sync=display-vdrop" 
116
             set_option("video-sync", "display-vdrop")
117
           Endif
118
     Endif
119
   Next
120
   If volumeproperty = "ao-volume" Then
121
-    Print "Not using internal mpv audio mixer means disabling maximum amplification,"
122
-    Print "...not going To set initial volume as an option, but use a property instead"
123
+    global.mydebug("Not using internal mpv audio mixer means disabling maximum amplification,\n... Not going To set initial volume As An option, but Use a Property instead")
124
     unset_option("volume-max", return_opts)
125
     unset_option("volume", return_opts)
126
   Endif
127
@@ -552,12 +560,21 @@
128
 
129
 Event seeking()
130
 
131
+' Private Function lua_list() As String
132
+'   Dim lua_script As String
133
+'   Dim out_list As String
134
+'   For Each lua_script In lua_scripts
135
+'     out_list &= lua_script & ","
136
+'   Next
137
+'   out_list &= killer_script_filename()
138
+'   Return out_list
139
+' End
140
+
141
 
142
 Private Function internal_options() As Collection
143
   Dim out As New Collection
144
 
145
-  'Returns a collection Of options that will be set every Time, depsite any configuration option
146
-
147
+  'Returstop
148
   'out["quiet"] = "yes"
149
   out["input-file"] = SetUpInputPipe()
150
   out["msg-color"] = "no"
151
@@ -565,22 +582,36 @@
152
   out["input-default-bindings"] = "no"
153
   out["term-status-msg"] = play_initialized_str
154
   out["force-seekable"] = "yes" 'this will allow seeks within the cache
155
+  out["script"] = killer_script_filename()
156
+  'out["script"] = lua_list() 'killer_script_filename()
157
 
158
   'this array will be needed by do_apply().
159
   'because it decides if a restart is needed by comparing the changed user options
160
   'with the previous one. But since changed options are set from the outside,
161
   'which has no clue about those internal_options, we say to do_apply to ignore
162
   'the following:
163
-  ignore_opts = ["input-file", "term-status-msg", "msg-color", "msg-level", "input-default-bindings", "start", "force-seekable", volumeproperty]
164
+  ignore_opts = ["script", "input-file", "term-status-msg", "msg-color", "msg-level", "input-default-bindings", "start", "force-seekable", volumeproperty]
165
   Return out
166
 End
167
 
168
+Public Function killer_script_filename() As String
169
+  
170
+  Dim tempdir As String = global.tmpdir
171
+  Dim file_name, txt_data As String
172
+  'uses a lua script to link mpv to the gui so that when the gui dies, mpv will quit
173
+  txt_data = File.Load("_lua_killer.lua")
174
+  txt_data = Replace(txt_data, "###", CStr(Application.id))
175
+  file_name = tempdir & "/killer.lua"
176
+  File.Save(file_name, txt_data)
177
+  
178
+  Return file_name
179
+End
180
 
181
 
182
 
183
 
184
 Public Function do_play(filename As String, Optional string_options As String = "", Optional restart As Boolean = False, Optional bugid1870 As Boolean = False, Optional cookieopts As String = "", Optional dumpfile As String = "/tmp/stream.dump.xt7.mpeg", Optional doanalyze As Boolean = False) As Boolean
185
-  Dim killer_script As String = Temp()
186
+  'Dim killer_script As String = Temp()
187
   Dim data As String
188
   Dim internal_opts As New Collection
189
   return_value = 0
190
@@ -604,7 +635,9 @@
191
   Endif
192
   
193
   mpvoptions = fix_options(mpvoptions)
194
+  
195
   commandline = executable() & set_options() & string_options
196
+  
197
   commandline &= Shell(filename)
198
   global.myDebug(commandline, commandline)
199
   last_media = filename
200
@@ -617,21 +650,69 @@
201
xt7-player-mpv-0.20.384.tar.gz/.src/Classi/PlaylistClass.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Classi/PlaylistClass.class Changed
42
 
1
@@ -123,6 +123,7 @@
2
   Endif
3
 End
4
 
5
+
6
 Public Sub LoadTable(ByRef table As String[], filename As String, mygrid As Gridview)
7
   Dim i As Integer
8
   Dim Layout As String[]
9
@@ -407,7 +408,22 @@
10
   Dim i, r As Integer
11
   Dim layout As String = "Layout"
12
   Dim MyFile As File
13
-  Try Copy filename To filename & ".bak"
14
+
15
+  'backup grid
16
+  If Not Exist(filename & ".bak", True) Then 
17
+    Try Copy filename To filename & ".bak"
18
+  Endif
19
+  
20
+  If Exist(filename & ".bak", True) Then
21
+    If Exist(filename, True) Then
22
+      If Stat(filename).size > Stat(filename & ".bak").size Then
23
+        Try Kill filename & ".bak"
24
+        Try Copy filename To filename & ".bak"
25
+      Endif
26
+    Endif
27
+  Endif
28
+  
29
+  
30
   Myfile = Open filename For Write Create
31
   'write table layout
32
   For i = 0 To mygrid.Columns.Count - 1
33
@@ -419,6 +435,8 @@
34
   Next 'c
35
   Close #MyFile
36
   
37
+  
38
+  
39
 End
40
 
41
 
42
xt7-player-mpv-0.20.384.tar.gz/.src/Classi/YoutubeClass.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Classi/YoutubeClass.class Changed
10
 
1
@@ -330,7 +330,7 @@
2
   Dim needsdecoding As Boolean = True
3
  ' global.myDebug(url)
4
   url = Lower(url)
5
-  needsdecoding = needsdecoding And ((url Like "http://*.youtube.*/*") Or (url Like "https://*.youtube.*/*") Or (url Like "http://*.googlevideo.*/*") Or (url Like "https://*.googlevideo.*/*"))
6
+  needsdecoding = needsdecoding And ((url Like "http://*.youtube.*/*") Or (url Like "ytdl://*") Or (url Like "https://*.youtube.*/*") Or (url Like "http://*.googlevideo.*/*") Or (url Like "https://*.googlevideo.*/*"))
7
   needsdecoding = needsdecoding And (Not (url Like "*t=*"))
8
   needsdecoding = needsdecoding And (Not (url Like "*ip=*"))
9
   needsdecoding = needsdecoding And (Not (url Like "*fexp=*"))
10
xt7-player-mpv-0.20.384.tar.gz/.src/Form/AudioConvert.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/AudioConvert.form Changed
17
 
1
@@ -85,6 +85,7 @@
2
     }
3
     { ProgressBar2 ProgressBar
4
       MoveScaled(22,0,57,3)
5
+      Background = Color.TextBackground
6
       Expand = True
7
     }
8
   }
9
@@ -98,6 +99,7 @@
10
     }
11
     { ProgressBar1 ProgressBar
12
       MoveScaled(22,0,57,3)
13
+      Background = Color.TextBackground
14
       Expand = True
15
     }
16
   }
17
xt7-player-mpv-0.20.384.tar.gz/.src/Form/AudioForm.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/AudioForm.class Changed
103
 
1
@@ -6,6 +6,7 @@
2
 
3
 
4
 Public Sub init()
5
+  Dim micimg As Image
6
 
7
   GridUp.columns.count = 2
8
   GridUp.rows.count = 6
9
@@ -15,7 +16,11 @@
10
   GridUp[3, 0].text = ("Title")
11
   GridUp[4, 0].text = ("Comment")
12
   GridUp[5, 0].text = ("Lyrics")
13
-  GridUp[5, 1].picture = Picture["icon:/22/microphone"]
14
+  'GridUp[5, 1].picture = Picture["icon:/22/microphone"]
15
+  micimg = Image.Load("audio-input-microphone.png")
16
+  micimg = micimg.Stretch((gridup.Rows.h * 0.7) / (micimg.h / micimg.w), (GridUp.Rows.H * 0.7))
17
+  GridUp[5, 1].picture = micimg.picture
18
+
19
   GridUp.Columns[0].w = -1
20
   GridUp.Columns[1].w = -1
21
   
22
@@ -172,10 +177,47 @@
23
   PictureBox2_MouseDown()
24
 End
25
 
26
+Public Sub AudioAreaGroup_Arrange()
27
+Dim w As Integer = Last.w
28
+
29
+' If Last = hbox1 Then
30
+   picturebox1.h = CInt(audiopanel.h / 3.15)
31
+   panelvisspacer.h = gridupbox.y Div 2
32
+'   Debug panelvisspacer.h 
33
+' Endif
34
+
35
+  If Last = audiopanel Then
36
+    If GridDown[0, 1].text = "" Then 
37
+      GridDown.Rows[0].h = 0
38
+        Else
39
+      GridDown.Rows[0].h = Griddown.Rows.H
40
+    Endif
41
+  
42
+    pictureback.lower
43
+    If Left(GeneralOptions.NoParseVisType2.text) = 0 Then 
44
+      picturebox1.Background = Color.Transparent
45
+      pictureback.Move(0, 0, audiopanel.w, AudioPanel.h)
46
+        Else
47
+      picturebox1.Background = Color.black
48
+      pictureback.Move(0, 0, audiopanel.w, AudioPanel.h - picturebox1.h)
49
+    Endif
50
+    Return
51
+  Endif
52
+  
53
+  If Last = gridup Then 
54
+    MakeGridShadow(audioform.gridupShadow, GridUp)
55
+    Return
56
+  Endif
57
+  If Last = griddown Then 
58
+    MakeGridShadow(audioform.griddownShadow, GridDown)
59
+    Return
60
+  Endif
61
+  
62
 
63
+End
64
 
65
 
66
-Public Sub AudioAreaGroup_Arrange()
67
+Public Sub OLD_AudioAreaGroup_Arrange()
68
 Dim w As Integer = Last.w
69
   If Last = audiopanel Then
70
     If GridDown[0, 1].text = "" Then 
71
@@ -205,14 +247,13 @@
72
   Endif
73
   
74
 
75
-
76
 End
77
 
78
-Private Sub antiglitch(color_mean As Integer)
79
-  FMain.outerbox.background = Color_mean
80
-  audiopanel.background = Color_mean
81
-  pictureback.Background = color_mean
82
-End
83
+' Private Sub antiglitch(color_mean As Integer)
84
+'   FMain.outerbox.background = Color_mean
85
+'   audiopanel.background = Color_mean
86
+'   pictureback.Background = color_mean
87
+' End
88
 
89
 
90
 'Public Color_mean As Integer
91
@@ -275,8 +316,10 @@
92
   
93
   'compose the alpha mask gradient over the blurred image  
94
    blurred.PaintImage(gradient, 0, 0)
95
+   'blurred.PaintImage(gradient, 0, 0)
96
+
97
 
98
-  antiglitch(Color.SetAlpha(blurred.Stretch(1, 3)[0, 1], 0)) 'will be used to draw the background so that glitches will be less visible.
99
+  'antiglitch(Color.SetAlpha(blurred.Stretch(1, 3)[0, 1], 0)) 'will be used to draw the background so that glitches will be less visible.
100
 
101
   pictureback.picture = blurred.picture
102
   pictureback.show
103
xt7-player-mpv-0.20.384.tar.gz/.src/Form/AudioForm.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/AudioForm.form Changed
119
 
1
@@ -7,7 +7,7 @@
2
   Arrangement = Arrange.Fill
3
   { AudioPanel VBox audioareagroup
4
     Name = "AudioPanel"
5
-    Move(7,28,672,420)
6
+    Move(7,28,672,469)
7
     Background = &H000000&
8
     Tracking = True
9
     Expand = True
10
@@ -17,14 +17,6 @@
11
       Tracking = True
12
       Expand = True
13
     }
14
-    { Label1 Label VideoAreaGroup
15
-      Name = "Label1"
16
-      Move(28,28,161,28)
17
-      Visible = False
18
-      Font = Font["Bold,Italic,17"]
19
-      Foreground = &HFFFF00&
20
-      Text = ("Media Info ")
21
-    }
22
     { GridUpBox HBox audioareagroup
23
       Name = "GridUpBox"
24
       Move(21,63,651,119)
25
@@ -48,10 +40,6 @@
26
           Alignment = Align.Center
27
         }
28
       }
29
-      { TimerZoomOut #Timer
30
-        #Move(140,63)
31
-        Delay = 30
32
-      }
33
       { GridUp GridView audioareagroup
34
         Name = "GridUp"
35
         Move(189,14,364,133)
36
@@ -69,42 +57,55 @@
37
         ScrollBar = Scroll.None
38
         AutoResize = False
39
       }
40
+      { TimerZoomOut #Timer
41
+        #Move(140,63)
42
+        Delay = 30
43
+      }
44
     }
45
-    { Panel1 Panel audioareagroup
46
-      Name = "Panel1"
47
-      Move(28,196,588,150)
48
-      Arrangement = Arrange.Horizontal
49
+    { Panel2 Panel audioareagroup
50
+      Name = "Panel2"
51
+      Move(42,203,469,182)
52
+      Arrangement = Arrange.Vertical
53
       AutoResize = True
54
-      Spacing = True
55
-      { LeftAlignDown VBox audioareagroup
56
-        Name = "LeftAlignDown"
57
-        Move(0,0,14,77)
58
-        Tracking = True
59
-      }
60
-      { GridDownShadow GridView
61
-        Move(42,-7,504,56)
62
-        Background = &HFF000000&
63
-        Border = False
64
-        Grid = False
65
-        ScrollBar = Scroll.None
66
-        AutoResize = False
67
+      { Panel1 Panel audioareagroup
68
+        Name = "Panel1"
69
+        Move(49,28,301,91)
70
+        Arrangement = Arrange.Horizontal
71
+        AutoResize = True
72
+        Spacing = True
73
+        { LeftAlignDown VBox audioareagroup
74
+          Name = "LeftAlignDown"
75
+          Move(49,0,14,77)
76
+          Tracking = True
77
+        }
78
+        { GridDownShadow GridView
79
+          Move(0,-7,504,56)
80
+          Background = &HFF000000&
81
+          Border = False
82
+          Grid = False
83
+          ScrollBar = Scroll.None
84
+          AutoResize = False
85
+        }
86
+        { GridDown GridView audioareagroup
87
+          Name = "GridDown"
88
+          Move(70,0,420,49)
89
+          Background = &HFF000000&
90
+          Border = False
91
+          Grid = False
92
+          ScrollBar = Scroll.None
93
+          AutoResize = False
94
+        }
95
       }
96
-      { GridDown GridView audioareagroup
97
-        Name = "GridDown"
98
-        Move(133,14,504,50)
99
-        Background = &HFF000000&
100
-        Border = False
101
-        Grid = False
102
-        ScrollBar = Scroll.None
103
-        AutoResize = False
104
+      { panelvisspacer Panel audioareagroup
105
+        Name = "panelvisspacer"
106
+        Move(98,133,252,35)
107
       }
108
     }
109
     { PictureBox1 Panel audioareagroup
110
       Name = "PictureBox1"
111
-      Move(133,357,420,63)
112
+      Move(119,434,420,35)
113
       Background = Color.Black
114
       Tracking = True
115
-      Expand = True
116
     }
117
     { PictureBack PictureBox AudioAreaGroup
118
       Name = "PictureBack"
119
xt7-player-mpv-0.20.384.tar.gz/.src/Form/CoverManager.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/CoverManager.class Changed
201
 
1
@@ -327,8 +327,7 @@
2
 
3
 Public Sub RemoveCoverCache(coverfile As String, Optional RemoveSourceToo As Boolean)
4
   Dim cachefile As String = coverfile & "_thumbcache" 'ricava il nome dei file cache
5
-
6
-  Shell "rm '" & cachefile & "'" & "*.*" 'rimuovilo dal disco
7
+  Dim linked, toremove, pointed As String
8
   'cercalo in memoria e rimuovilo:
9
   If CoverCacheList.Count > 0 Then 
10
     CoverCacheList.Movefirst
11
@@ -342,11 +341,52 @@
12
       Endif
13
     Until CoverCacheList.MoveBelow()
14
   Endif
15
+
16
+
17
+  'since we use soft links to save disk space, we need to be careful
18
+  'on deleting files that may be linked from other items.
19
+  'so, if what we're removing is not a link, make sure they don't loose the picture too.
20
+  If Exist(coverfile, False) Then
21
+    If Stat(coverfile, False).type = gb.Link Then
22
+      Try Kill coverfile
23
+        Else 'not a link
24
+      For Each linked In Dir(global.confpath & "/covers/", "*.*", gb.link)
25
+        linked = global.confpath & "/covers/" & linked
26
+        Try pointed = Stat(linked).link
27
+        If Error Then Continue
28
+        If (pointed = coverfile) And RemoveSourceToo Then
29
+          'replace all linked files that points to the coverfile with the real coverfile
30
+          Try unlink_by_copy(linked, coverfile)
31
+            Else If pointed Like "*" & cachefile & "*" Then
32
+            'replace all linked thumbcaches files that points to the thumbcache coverfile
33
+            Try unlink_by_copy(linked, pointed)
34
+        Endif
35
+      Next
36
+    Endif
37
+  Endif
38
+
39
   If RemoveSourceToo Then Try Kill coverfile
40
+
41
+  'clear file thumbcaches
42
+  Shell "rm '" & cachefile & "'" & "*.*" & " &>/dev/null" 'rimuovilo dal disco
43
+
44
   FMain.RefreshVisibleCovers(FMain.librarygrid)
45
   FMain.RefreshVisibleCovers(FMain.playlistgrid)
46
 End
47
 
48
+Public Sub unlink_by_copy(linked_file As String, Optional real_file As String = "")
49
+  If real_file = "" Then
50
+    Try real_file = Stat(linked_file).Link
51
+    If Not Exist(real_file) Then
52
+      global.myDebug("Unable to unlink by copy" & linked_file, "pointed file does not exist!")
53
+    Endif
54
+  Endif
55
+  Try Kill linked_file
56
+  If Not Error Then
57
+    Try Copy real_file To linked_file
58
+    If Error Then global.myDebug("Unable to unlink " & linked_file, "error while copying")
59
+  Endif
60
+End
61
 
62
 
63
 
64
@@ -358,22 +398,7 @@
65
 Dim width As Integer
66
 Dim neww As Integer
67
 
68
-  
69
-' zzzfake.Arrangement = Arrange.Fill
70
-' Try CoverCacheList.expand = True
71
-' Try zzzfake.Stacking = Window.above
72
-' Try zzzfake.mask = False
73
-' Try zzzfake.opacity = 100
74
-' Try zzzfake.Move(0, 0)
75
-' Try zzzfake.show
76
-
77
-'Wait '0.0001
78
-
79
-  'neww = generaloptions.IconWidthCombobox.text + shadowoffsetpaint 
80
   neww = height + (height Div 8)
81
-  'Return cornice(imgandshadow, neww, neww).Picture
82
-
83
-'ResizeShadowTemplate(neww * 2)
84
 
85
 'gestisce le thumbnails su disco e la loro cache in memoria
86
 'non crea di per sè alcuna immagine, al più restituisce delle immagini di default
87
@@ -408,7 +433,6 @@
88
     Endif
89
   Endif
90
      Else ' IF NOT Exist(coverfile) THEN 'se la cover non esiste, ricava un nuovo coverfile:
91
-
92
   If global.isytdl(uripath) Then
93
     coverfile = "ytdl.png"
94
     defaultcover = True
95
@@ -829,12 +853,14 @@
96
   Dim newfilename As String
97
   Dim currentfilename As String
98
   Dim ScaleTo As Integer
99
+  Stop
100
   CoverManager.close
101
   'stop any previous search
102
   HitCancel = True
103
   'set new cover
104
   newfilename = Coverfile(ArtistText.text, AlbumText.text)
105
   
106
+  Try RemoveCoverCache(newfilename, False)
107
   Try currentfilename = Coverlist.Current.key
108
   If Not Error Then
109
     Try Kill newfilename
110
@@ -845,17 +871,19 @@
111
       SaveScaled(currentfilename, newfilename, ScaleTo)
112
     Endif
113
   Endif
114
-  Try RemoveCoverCache(newfilename, False)
115
   FMain.CoverRefresh()
116
 
117
+
118
+  Try RemoveCoverCache(newfilename, False)
119
   Wait 0.05
120
   Try currentfilename = Coverlist.Current.key
121
   If Not Error Then
122
     Try Kill newfilename
123
     Try Copy currentfilename To ((newfilename))
124
   Endif
125
-  Try RemoveCoverCache(newfilename, False)
126
   FMain.CoverRefresh(True)
127
+  
128
+
129
 End
130
 
131
 
132
@@ -929,8 +957,10 @@
133
     Message.Error(("Error while loading the picture"), "Ok")
134
   Endif
135
   Picturebox1.refresh
136
-  FMain.CoverRefresh()
137
   Try RemoveCoverCache(newfilename, False)
138
+
139
+  FMain.CoverRefresh()
140
+
141
 End
142
 
143
 Public Sub Form_KeyPress()
144
@@ -1043,8 +1073,12 @@
145
        global.myDebug("Missing file! " & fullpath)
146
        FileNotFoundAdd(fullpath)
147
         'mygrid[row, 0].picture = picture["icon:/" & (rowheight -global.rowpadding) & "/error"]
148
-        mygrid[row, column].text = ""
149
-        mygrid[row, column].clear
150
+        Try mygrid[row, column].text = ""
151
+        If Not Error Then
152
+          mygrid[row, column].clear
153
+            Else
154
+          Global.myDebug("Unexpected empty row")  
155
+        Endif
156
        Return
157
      Endif
158
    Endif
159
@@ -1131,60 +1165,56 @@
160
   Endif
161
 End
162
 
163
+
164
+Private folderpictures As New Collection
165
+
166
 Public Function FolderPicture(Directory As String) As String  
167
   Dim Files As New String[]
168
+  Dim Matches As New String[] 
169
+  Dim sMatch As String
170
+  Dim sfile As String
171
   Dim afile As String
172
-  
173
-  Files = (Dir(Directory, "*ront*.jpg"))
174
-  If Files.count > 0 Then Goto FILEFOUND  
175
-
176
-  Files = (Dir(Directory, "*FRONT*.jpg")) 
177
-  If Files.count > 0 Then Goto FILEFOUND  
178
-
179
-  Files = (Dir(Directory, "*FRONT*.JPG"))
180
-  If Files.count > 0 Then Goto FILEFOUND  
181
 
182
-  Files.Insert(Dir(Directory, "ront*.JPEG"))
183
-  If Files.count > 0 Then Goto FILEFOUND
184
-  
185
-  Files.Insert(Dir(Directory, "*ront*.PNG"))
186
-  If Files.count > 0 Then Goto FILEFOUND
187
-  
188
-  Files.Insert(Dir(Directory, "*ront*.BMP"))
189
-  If Files.count > 0 Then Goto FILEFOUND
190
-  
191
-  Files.Insert(Dir(Directory, "*.jpg"))
192
-  If Files.count > 0 Then Goto FILEFOUND
193
-  
194
-  Files.Insert(Dir(Directory, "*.JPG"))
195
-  If Files.count > 0 Then Goto FILEFOUND
196
-
197
-  Files.Insert(Dir(Directory, "*.jpeg"))
198
-  If Files.count > 0 Then Goto FILEFOUND
199
-  
200
-  Files.Insert(Dir(Directory, "*.JPEG"))
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/DVBTuner.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/DVBTuner.form Changed
103
 
1
@@ -9,6 +9,7 @@
2
   Margin = True
3
   { HBox2 HBox
4
     MoveScaled(1,3,81,4.5714)
5
+    Spacing = True
6
     { LabelFrequencies Label
7
       MoveScaled(0,1,17,3)
8
       AutoResize = True
9
@@ -49,6 +50,7 @@
10
     Padding = 2
11
     { LabelCardN Label
12
       MoveScaled(0,0,17,3)
13
+      AutoResize = True
14
       Text = ("Card #")
15
     }
16
     { SpinBox1 SpinBox
17
@@ -68,21 +70,25 @@
18
       Picture = Picture["icon:/16/cancel"]
19
     }
20
   }
21
+  { Separator3 Separator
22
+    MoveScaled(6,14,66,1)
23
+  }
24
   { Panel1 Panel
25
-    MoveScaled(2,13,78,8)
26
+    MoveScaled(2,15,78,8)
27
     Background = Color.TextBackground
28
     Expand = True
29
     Arrangement = Arrange.Fill
30
-    Border = Border.Plain
31
+    Border = Border.Sunken
32
     { channelsgrid GridView
33
-      MoveScaled(9,1,42,5)
34
+      MoveScaled(5,1,42,5)
35
       Expand = True
36
+      Border = False
37
       Mode = Select.Multiple
38
       Grid = False
39
     }
40
   }
41
   { SelectBox HBox
42
-    MoveScaled(0,22,82,4.5714)
43
+    MoveScaled(0,24,82,4.5714)
44
     Spacing = True
45
     Padding = 2
46
     { Button2 Button
47
@@ -108,7 +114,7 @@
48
     }
49
   }
50
   { HBox1 HBox
51
-    MoveScaled(0,27,82,4.5714)
52
+    MoveScaled(0,29,82,3.1429)
53
     Spacing = True
54
     Padding = 2
55
     { Label2 Label
56
@@ -118,31 +124,41 @@
57
     }
58
     { ProgressBar1 ProgressBar
59
       MoveScaled(7,0,18,4.5714)
60
+      Background = Color.TextBackground
61
       Expand = True
62
     }
63
+    { Separator2 Separator
64
+      MoveScaled(26,1,2,4)
65
+    }
66
     { Label3 Label
67
-      MoveScaled(26,0,9,3)
68
+      MoveScaled(29,0,9,3)
69
       AutoResize = True
70
       Text = ("Signal")
71
     }
72
     { sigbar ProgressBar
73
-      MoveScaled(32,0,18,4.5714)
74
+      MoveScaled(36,0,14,5)
75
+      Background = Color.TextBackground
76
       Expand = True
77
     }
78
+    { Separator1 Separator
79
+      MoveScaled(51,1,2,3)
80
+    }
81
     { Label4 Label
82
-      MoveScaled(51,0,7,3)
83
+      MoveScaled(53,0,7,3)
84
       AutoResize = True
85
       Text = ("SnR")
86
     }
87
     { snrbar ProgressBar
88
-      MoveScaled(57,0,18,4.5714)
89
+      MoveScaled(60,0,18,4.5714)
90
+      Background = Color.TextBackground
91
       Expand = True
92
     }
93
   }
94
   { Expander1 Expander
95
-    MoveScaled(-2,31,81,38)
96
+    MoveScaled(0,32,81,38)
97
     Arrangement = Arrange.Fill
98
     Margin = True
99
+    Border = False
100
     Text = ("Verbose Log")
101
     Hidden = True
102
     { TextArea1 TextArea
103
xt7-player-mpv-0.20.384.tar.gz/.src/Form/FMain.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/FMain.class Changed
201
 
1
@@ -2,7 +2,7 @@
2
 
3
 'Copyright (C) 2007, 2008 Antonio Orefice
4
 
5
-Private timer_runtime_infos As Timer
6
+'Private timer_runtime_infos As Timer
7
 
8
 Public AlreadyLoaded As Boolean = False 'true if the form loaded it's settings from disk at least one time
9
 'Private exportfilespath As String 'mpv 0.11 removed af_export filter :(
10
@@ -430,6 +430,18 @@
11
   SetCDDATabVisibility(False)
12
   SetChaptersTabVisibility(False)
13
   SetStyle_early()
14
+  If GeneralOptions.ToolTipsCHKDBUS.value Then 
15
+    Try ExportDbusProperties()
16
+  Endif
17
+  
18
+  'Copy stats lua script to temporary dir
19
+  Try File.Save(global.TmpDir & "/_mpvstats.lua", File.Load("_mpvstats.lua"))
20
+  If Error Then 
21
+    global.mydebug("Cannot copy _mpvstats.lua to " & global.tmpdir)
22
+    Stop
23
+    Return
24
+  Endif
25
+
26
 End
27
 
28
 Public Sub InitEarlyForms()
29
@@ -545,15 +557,15 @@
30
   If global.arg_file <> "" Then
31
     If Exist(global.arg_file, True) Then fmain.ShowBrowseTabTo(global.arg_file)
32
   Endif
33
-  If GeneralOptions.ToolTipsCHKDBUS.value Then Try ExportDbusProperties()
34
+
35
   updaterecentfiles()
36
 
37
   Try MakeProfileMenu()
38
   Try GetLastVersion()
39
   fsform.Move(Screens[fmain.screen].x, Screens[fmain.screen].y, Screens[fmain.screen].w, Screens[fmain.screen].H)
40
   
41
-  timer_runtime_infos = New Timer As "timer_runtime_infos"
42
-  timer_runtime_infos.enabled = False
43
+  ' timer_runtime_infos = New Timer As "timer_runtime_infos"
44
+  ' timer_runtime_infos.enabled = False
45
 End
46
 
47
 Private Sub MakeProfileMenu()
48
@@ -954,9 +966,7 @@
49
     ' Next 'TheForm
50
   Endif
51
 
52
-  audioform.Label1.Foreground = &HFFFF00&
53
-  audioform.Label1.Font.Italic = True
54
-  Audioform.Label1.Font.size = Audioform.audiopanel.Font.size + 4
55
+
56
   fmain.Statusbar1.Foreground = &HF0F0F0&
57
   fmain.Statusbar1.Background = &000000&
58
   
59
@@ -1172,6 +1182,7 @@
60
     FMain.LoadFormGeometry()
61
     fmain.Show
62
     Wait 
63
+
64
     If (Not global.arg_append) And (global.arg_file <> "") Then 
65
       Media_Next_path = DConv(global.arg_file)
66
       PlayFromCommandline = True 
67
@@ -1191,10 +1202,9 @@
68
       Else
69
 
70
     FMain.LoadFormGeometry()
71
+
72
     If Not global.arg_start_tray Then fmain.Show
73
   Endif
74
-  
75
-  Hsplit1_MyRefresh()
76
 
77
   DelayTimer.delay = 1000
78
   DelayTimer.Start
79
@@ -1517,15 +1527,17 @@
80
   Try HotKeys.xbindkeys.kill
81
   Print "xbindkeys killed"
82
 
83
-  If GeneralOptions.SaveOnExitCHK.value = True Then
84
-    Try Global.SaveAllSettings(global.CurrentProfile)
85
-    If Error Then 
86
-      global.myDebug("couldn't save all settings at exit as requested...")
87
+  If fmain.fullyloaded Then
88
+    If GeneralOptions.SaveOnExitCHK.value = True Then
89
+      Try Global.SaveAllSettings(global.CurrentProfile)
90
+      If Error Then 
91
+        global.myDebug("couldn't save all settings at exit as requested...")
92
+      Else
93
+        global.myDebug("All settings saved")
94
+      Endif
95
     Else
96
-      global.myDebug("All settings saved")
97
+      global.SaveMandatorySettings(global.CurrentProfile)
98
     Endif
99
-  Else
100
-    global.SaveMandatorySettings(global.CurrentProfile)
101
   Endif
102
 
103
 
104
@@ -1590,7 +1602,12 @@
105
   Try FormLyrics.close
106
   Try AudioConvert.close 
107
   
108
- global.myDebug("time to close = " & CStr(Timer() - t0))
109
+  'Deduplicate covers every now ant then...
110
+  If (Rnd(0, 10) > 9) Then 
111
+    Try global.Dedupe(global.confpath & "/covers/")
112
+  Endif
113
+  
114
+  global.myDebug("time to close = " & CStr(Timer() - t0))
115
   Print "Bye"
116
   Wait 0.5
117
   Quit
118
@@ -1804,18 +1821,14 @@
119
 
120
 
121
 Public Sub ButtonStop_Click()
122
- 
123
-  ' Return
124
-  ' Dim a As Integer = 1 / 0
125
-    'Stop
126
-  'stop timers as soon as possible
127
+
128
   Try mousehider.stop
129
   Try TimerFullScreen.Stop
130
   Try mplayer.event_loop.stop
131
   Try DelayTimer.stop
132
 
133
   Try global.Preload_file_bg_stop()
134
-  Try timer_runtime_infos.stop()
135
+  'Try timer_runtime_infos.stop()
136
   Try timerqueue.stop()
137
   switchresBTN.enabled = True
138
   global.mouse_wait(fmain, False)
139
@@ -2454,7 +2467,6 @@
140
 Private DbusAlreadyRegistered As Boolean = False
141
 
142
 Public Sub ExportDbusProperties()
143
-
144
   If Not DbusAlreadyRegistered Then
145
     Try DBus.Name = "org.mpris.MediaPlayer2.xt7"
146
     If Error Then 
147
@@ -2544,6 +2556,7 @@
148
   opts["cursor-autohide-fs-only"] = "no"
149
   opts["audio-pitch-correction"] = "no"
150
   opts["audio-display"] = "no"
151
+ 
152
   Return opts
153
 End
154
 
155
@@ -2565,8 +2578,26 @@
156
       Else
157
     'parse the chain if we have not a cache
158
     NewChains.FirstLoadIfNeeded()
159
-    opts["vo"] = NewChains.parse_drivers(False) 'XConfigureVideoDriver.ParsedVideoDriver()
160
-    opts["ao"] = NewChains.parse_drivers(True) 'XConfigureAudioDriver.ParsedAudioDriver()
161
+    
162
+  For Each opt In newchains.parse_drivers(False)
163
+    If opt.data = "" Then opt.data = Chr(8)
164
+    While opts.Exist(opt.name)
165
+      opt.name = " " & opt.name 'to have multiple options with the same name
166
+    Wend
167
+    opts[opt.name] = opt.data
168
+  Next
169
+    
170
+  For Each opt In newchains.parse_drivers(True)
171
+    If opt.data = "" Then opt.data = Chr(8)
172
+    While opts.Exist(opt.name)
173
+      opt.name = " " & opt.name 'to have multiple options with the same name
174
+    Wend
175
+    opts[opt.name] = opt.data
176
+  Next
177
+  
178
+  
179
+    
180
+    'opts["ao"] = NewChains.parse_drivers(True) 'XConfigureAudioDriver.ParsedAudioDriver()
181
 
182
     opts["vf-add"] = NewChains.parse_filters(False)
183
     opts["af-add"] = NewChains.parse_filters(True)
184
@@ -2749,7 +2780,7 @@
185
   mplayer.watched_properties_old_data.Add("", "duration")
186
   mplayer.watched_properties_old_data.Add("", "=duration")
187
   mplayer.watched_properties_old_data.Add("", "percent-pos")
188
-  mplayer.watched_properties_old_data.Add("", "cache")
189
+  mplayer.watched_properties_old_data.Add("", "cache-percent")
190
   mplayer.watched_properties_old_data.Add("", "media-title")
191
   mplayer.watched_properties_old_data.Add("", "=aid")
192
   ' mplayer.watched_properties_old_data.Add("", "=vid")
193
@@ -2760,7 +2791,6 @@
194
   For Each data In opts
195
     mplayer.set_option(opts.key, data)
196
   Next
197
-
198
   opts = file_options(fullpath)
199
   For Each data In opts
200
     mplayer.set_option(opts.key, data)
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/FMain.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/FMain.form Changed
201
 
1
@@ -21,14 +21,14 @@
2
       Text = ("Video Filters")
3
       Picture = Picture["icon:/medium/video"]
4
     }
5
-    { VideoDriversMenuPopup Menu
6
-      Text = ("Video Drivers")
7
-      Picture = Picture["icon:/medium/video"]
8
-    }
9
     { AudioFiltersMenuPopup Menu
10
       Text = ("Audio Filters")
11
       Picture = Picture["icon:/medium/audio"]
12
     }
13
+    { VideoDriversMenuPopup Menu
14
+      Text = ("Video Drivers")
15
+      Picture = Picture["icon:/medium/video"]
16
+    }
17
     { AudioDriversMenuPopup Menu
18
       Text = ("Audio Drivers")
19
       Picture = Picture["icon:/medium/audio"]
20
@@ -221,8 +221,8 @@
21
         Text = ("Set a cover")
22
         Picture = Picture["icon:/16/color"]
23
       }
24
-      { MenuEmbeddedCoversLibrary Menu
25
-        Text = ("Search for embedded covers")
26
+      { MenuUpdateCover Menu
27
+        Text = ("Update Cover")
28
         Picture = Picture["icon:/16/attach"]
29
       }
30
       { Separator43057 Menu
31
@@ -802,9 +802,6 @@
32
       Picture = Picture["icon:/22/quit"]
33
     }
34
   }
35
-  { TimerUpdateNowNext #Timer
36
-    #MoveScaled(44,5)
37
-  }
38
   { HSplit1 HSplit
39
     MoveScaled(0,5,103,68)
40
     Tracking = True
41
@@ -876,6 +873,7 @@
42
         { MyLibraryProgressBar ProgressBar
43
           MoveScaled(0,52,38,3)
44
           Visible = False
45
+          Background = Color.TextBackground
46
         }
47
         Index = 1
48
         Text = ("Albums")
49
@@ -1280,10 +1278,6 @@
50
           Tag = "flash"
51
           Text = ("Label3")
52
         }
53
-        { TimerFlash #Timer
54
-          #MoveScaled(9,2)
55
-          Delay = 2000
56
-        }
57
         { Panel5 Panel GridPanels
58
           Name = "Panel5"
59
           MoveScaled(2,10,30,15)
60
@@ -1313,6 +1307,10 @@
61
           AutoResize = True
62
           Text = ("PopUp window to play new catched videos")
63
         }
64
+        { TimerFlash #Timer
65
+          #MoveScaled(9,2)
66
+          Delay = 2000
67
+        }
68
         Index = 9
69
         Text = ("YouTube")
70
         Picture = Picture["youtubeicon.png"]
71
@@ -1330,10 +1328,6 @@
72
             MoveScaled(0,0,35,10)
73
             Expand = True
74
           }
75
-          { TimerTreeDelayExpand #Timer
76
-            #MoveScaled(24,2)
77
-            Delay = 50
78
-          }
79
           { scrollviewyt ScrollView
80
             MoveScaled(0,10,35,13)
81
             Visible = False
82
@@ -1348,9 +1342,14 @@
83
               Foreground = &HFFFFFF&
84
               ToolTip = ("Click to open video page")
85
               Expand = True
86
+              Padding = 6
87
               AutoResize = True
88
             }
89
           }
90
+          { TimerTreeDelayExpand #Timer
91
+            #MoveScaled(24,2)
92
+            Delay = 50
93
+          }
94
         }
95
         { HBox13 HBox
96
           MoveScaled(2,28,32,4.5714)
97
@@ -1376,10 +1375,6 @@
98
             Picture = Picture["icon:/small/tools"]
99
           }
100
         }
101
-        { blinktimer #Timer
102
-          #MoveScaled(30,31)
103
-          Delay = 100
104
-        }
105
         { sidepanelYTSearchoptions Panel
106
           MoveScaled(2,36,32,25)
107
           Visible = False
108
@@ -1413,7 +1408,7 @@
109
               Text = ("Order by")
110
             }
111
             { ComboBoxOrderBy ComboBox
112
-              MoveScaled(9.4286,-36.2857,18,4.5714)
113
+              MoveScaled(9.4286,-44.2857,18,4.5714)
114
               #Translate = False
115
               Expand = True
116
               ReadOnly = True
117
@@ -1472,6 +1467,10 @@
118
             }
119
           }
120
         }
121
+        { blinktimer #Timer
122
+          #MoveScaled(30,31)
123
+          Delay = 100
124
+        }
125
         Index = 10
126
         Text = ("Radio")
127
         Picture = Picture["iradio.png"]
128
@@ -1954,15 +1953,15 @@
129
             Expand = True
130
             Text = ("Select next")
131
           }
132
+          { HBox3 HBox
133
+            MoveScaled(14,1,5,3)
134
+            Expand = True
135
+          }
136
           { Button2 Button
137
             MoveScaled(12,0,12,4.5714)
138
             Text = ("Refresh")
139
             Picture = Picture["icon:/16/refresh"]
140
           }
141
-          { HBox3 HBox
142
-            MoveScaled(14,1,5,3)
143
-            Expand = True
144
-          }
145
           { ButtonTag Button
146
             MoveScaled(21,0,12,4.5714)
147
             Text = ("Commit")
148
@@ -1977,10 +1976,6 @@
149
           Expand = True
150
         }
151
       }
152
-      { ABLoopTimer #Timer
153
-        #MoveScaled(1,6)
154
-        Delay = 75
155
-      }
156
       { OuterBox Panel VideoAreaGroup
157
         Name = "OuterBox"
158
         MoveScaled(4,15,24,28)
159
@@ -2017,11 +2012,11 @@
160
       { BottomVbox VBox
161
         MoveScaled(0,48,71,14)
162
         Background = Color.Background
163
-        { ControlFrame Frame
164
-          MoveScaled(1,3,70,10)
165
+        { ControlFrame Panel
166
+          MoveScaled(-13,1,72,10)
167
           Font = Font["6"]
168
           { PictureBox1 PictureBox
169
-            MoveScaled(1,1,60,7)
170
+            MoveScaled(2,0,60,7)
171
             Tracking = True
172
             Drop = True
173
             Expand = True
174
@@ -2069,7 +2064,7 @@
175
               Picture = Picture["media-playback-stop.png"]
176
             }
177
             { ChaptersBtn Button
178
-              MoveScaled(15,0,4,4.5714)
179
+              MoveScaled(16,-1,4,4.5714)
180
               Visible = False
181
               Font = Font["1"]
182
               ToolTip = ("Chapters available")
183
@@ -2077,16 +2072,16 @@
184
               Border = False
185
             }
186
             { Panel9 Panel
187
-              MoveScaled(19,1,54,17)
188
+              MoveScaled(21,3,14.2857,17)
189
               Expand = True
190
               Arrangement = Arrange.Fill
191
               Padding = 8
192
               { ProgressFrame DrawingArea
193
-                MoveScaled(0,0,53,16)
194
+                MoveScaled(3,0,53,16)
195
                 Expand = True
196
                 Border = Border.Plain
197
                 { Progress PictureBox
198
-                  MoveScaled(5,1,6,4.5714)
199
+                  MoveScaled(6,1,6,4.5714)
200
                   Picture = Picture["barglow.png"]
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/FormLyrics.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/FormLyrics.form Changed
83
 
1
@@ -9,8 +9,9 @@
2
   Arrangement = Arrange.Vertical
3
   Margin = True
4
   { Panel2 HBox
5
-    MoveScaled(0,5,86,3)
6
+    MoveScaled(0,5,86,4.5714)
7
     AutoResize = True
8
+    Margin = True
9
     { NextBTN Button
10
       MoveScaled(0,0,9,4.5714)
11
       AutoResize = True
12
@@ -22,7 +23,7 @@
13
       MoveScaled(11,0,2,4.5714)
14
     }
15
     { ComboUrls ComboBox
16
-      MoveScaled(13,0,57,4.5714)
17
+      MoveScaled(13,0,57,3.1429)
18
       Expand = True
19
     }
20
     { ButtonZoomOut Button
21
@@ -43,7 +44,7 @@
22
     { TextLabel1 TextLabel
23
       MoveScaled(4,2,45,48)
24
       Expand = True
25
-      Text = ("Please wait...")
26
+      Text = ("Please wait") & "..."
27
     }
28
   }
29
   { TextArea1 TextArea
30
@@ -53,40 +54,43 @@
31
     Text = ("TextArea1")
32
   }
33
   { Panel3 HBox
34
-    MoveScaled(1,77,86,3)
35
+    MoveScaled(1,77,86,4)
36
     AutoResize = True
37
+    Spacing = True
38
+    Margin = True
39
     { Label1 Label
40
-      MoveScaled(0,0,5,4.5714)
41
+      MoveScaled(0,0,5,4)
42
       AutoResize = True
43
       Text = ("Artist")
44
     }
45
     { textartist TextArea
46
-      MoveScaled(15,0,17,4.5714)
47
+      MoveScaled(15,0,17,4)
48
       Expand = True
49
+      Alignment = Align.Center
50
       ScrollBar = Scroll.None
51
     }
52
     { Separator1 Separator
53
-      MoveScaled(34,0,2,4.5714)
54
+      MoveScaled(34,0,2,4)
55
     }
56
     { Label2 Label
57
-      MoveScaled(38,0,4,4.5714)
58
+      MoveScaled(38,0,4,4)
59
       AutoResize = True
60
       Text = ("Title")
61
     }
62
     { textsong TextArea
63
-      MoveScaled(43,0,25,4.5714)
64
+      MoveScaled(43,0,25,4)
65
       Expand = True
66
+      Alignment = Align.Center
67
       ScrollBar = Scroll.None
68
     }
69
     { Separator2 Separator
70
-      MoveScaled(70,-1,1,4.5714)
71
+      MoveScaled(70,-1,1,4)
72
     }
73
     { ButtonNewSearch Button
74
-      MoveScaled(73,0,14,4.5714)
75
+      MoveScaled(73,0,14,4)
76
       AutoResize = True
77
       Text = ("New search")
78
       Picture = Picture["icon:/22/find"]
79
-      Border = False
80
     }
81
   }
82
 }
83
xt7-player-mpv-0.20.384.tar.gz/.src/Form/GeneralOptions.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/GeneralOptions.class Changed
201
 
1
@@ -9,6 +9,14 @@
2
 
3
 Private LastDirectory As String = ""
4
 
5
+Public Struct MpvOptionInfo 
6
+  name As String
7
+  type As String
8
+  default_value As Variant
9
+  min As Variant
10
+  max As Variant
11
+  choices As String[]
12
+End Struct
13
 
14
 Public Sub FirstLoadIfNeeded()
15
   If Not initdone Then Init()
16
@@ -319,6 +327,7 @@
17
   Tabstrip1.index = PrevIndex
18
   'hardware decoding macro
19
   Try hwdec_choice = Split(NOPARSE_HwdecCombobox.text, " ")[0]
20
+  
21
   If Not Error Then
22
     myopts.Add(newopt("hwdec", Split(NOPARSE_HwdecCombobox.text, " ", "", True)[0]))
23
   Endif
24
@@ -346,6 +355,7 @@
25
   If Right(pt) = "," Then pt = Left(pt, -1)
26
   'If pt <> "" Then myopts.Add(newopt("ad", pt))
27
   If pt <> "" Then myopts.Add(newopt("audio-spdif", pt))
28
+
29
   Return myopts.Insert(parse_custom_options())
30
 
31
 End
32
@@ -354,13 +364,17 @@
33
   Dim myopts As New MpvOption[]
34
   Dim visstring As String
35
   Dim t1 As String
36
-
37
-  t1 = Temp()
38
+  
39
+  t1 = global.tmpdir & "/pic.tmp" 
40
+  Try Kill t1
41
   Select Case Left(NoParseVisType2.text)
42
     Case "1"
43
-      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]'"
44
+      Copy "shade_alpha.png" To t1
45
+      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];movie=" & t1 & ",scale=h=(128):w=512[pic];[spectrum][pic]overlay[overlay1];[overlay1][waves]overlay[vo]'"
46
+      '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]'"
47
     Case "2"
48
-      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]'"
49
+      Copy "shade_alpha.png" To t1
50
+      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];movie=" & t1 & ",scale=h=(128):w=512[pic];[spectrum][pic]overlay[overlay1];[overlay1][waves]overlay[vo]'"
51
     Case "3"
52
       Copy "shade_alpha.png" To t1
53
       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]'"
54
@@ -375,6 +389,15 @@
55
   If visstring <> "" Then
56
     myopts.Add(newopt("keepaspect", "no"))
57
     myopts.Add(newopt("lavfi-complex", visstring))
58
+    myopts.Add(newopt("osd-level", "0"))
59
+    myopts.Add(newopt("osd-color", "#00000000"))
60
+    myopts.Add(newopt("osd-scale", "0.01"))
61
+
62
+    If global.mpv_version = "" Then global.mpv_version = fmain.mplayer.version()
63
+    If global.mpv_version = "0.21.0" Then
64
+      myopts.Add(newopt("hr-seek", "yes"))
65
+    Endif
66
+    
67
   Endif
68
   Return myopts
69
 End
70
@@ -383,8 +406,6 @@
71
 
72
 Public Sub ApplyBTN_Click()
73
 
74
-Debug NoParse55ab.visible
75
-
76
   FMain.Apply
77
   Wait 0.1
78
   'IF ((NOT FMain.mplayer.ProcessRunningOvr()) OR (Fmain.mplayer.paused)) OR (GeneralOptions.Tabstrip1.caption = ("Style")) THEN 'apply style changes only if mplayer is not running.
79
@@ -1094,11 +1115,13 @@
80
     If MyHbox Is Hbox Then
81
       If MyHbox.children[0] Is Checkbox Then
82
         MyCheckbox = MyHbox.children[0]
83
-        If MyCheckbox.value Then 
84
-          opt = New MpvOption
85
-          opt.name = MyCheckbox.next.text
86
-          opt.data = MyCheckbox.next.next.next.text
87
-          opts.add(opt)
88
+        If MyCheckbox.value Then
89
+          If Trim(MyCheckbox.next.text) <> "" Then  
90
+            opt = New MpvOption
91
+            opt.name = MyCheckbox.next.text
92
+            opt.data = MyCheckbox.next.next.next.text
93
+            opts.add(opt)
94
+          Endif
95
         Endif
96
       Endif
97
     Endif
98
@@ -1163,6 +1186,7 @@
99
     If o Is Hbox Then
100
       If o.Children[0] Is CheckBox Then
101
         c = o.Children[1]
102
+        Object.Lock(c)
103
         c.enabled = o.Children[0].value
104
         c.Next.next.enabled = c.enabled
105
         If c.List.count < 2 Then 
106
@@ -1172,6 +1196,7 @@
107
           Next
108
           c.text = t
109
         Endif
110
+        Object.unLock(c)
111
       Endif
112
     Endif
113
   Next
114
@@ -1352,7 +1377,7 @@
115
   If Last.value = False Then 
116
     fmain.SetProgressCache(0)
117
       Else
118
-   If fmain.mplayer.ProcessRunningOvr() Then fmain.Update_cache_percent(fmain.mplayer.get_property_mpv("cache", True, 1, True))
119
+   If fmain.mplayer.ProcessRunningOvr() Then fmain.Update_cache_percent(fmain.mplayer.get_property_mpv("cache-percent", True, 1, True))
120
   Endif
121
 End
122
 
123
@@ -1367,3 +1392,185 @@
124
     fmain.mplayer.volumeproperty = "ao-volume"
125
   Endif
126
 End
127
+
128
+Public Sub OLD_ComboOption_Click()
129
+  Dim values As New String[]
130
+  Dim value, prev_value As String
131
+  Dim combonext As Combobox
132
+  Dim option_infos As Collection
133
+  Dim option_info As MpvOptionInfo
134
+  Dim i, imin, imax, istep As Long
135
+  Dim choice As String
136
+  If Not alreadyloaded Then Return
137
+  If Not fmain.fullyloaded Then Return
138
+  
139
+  If Not (Last.next.next Is Combobox) Then Return
140
+  combonext = Last.next.next
141
+
142
+
143
+  option_infos = fmain.mplayer.options_info()
144
+  If Not option_infos.Exist(Last.text) Then Return
145
+
146
+'  A questo punto, hai tutto, devi solo immaginare come parsare i valori e inserirli nella combobox
147
+  
148
+'  combonext.text = prev_value 
149
+  option_info = option_infos[Last.text]
150
+  
151
+  prev_value = combonext.text
152
+  combonext.Clear
153
+
154
+
155
+  If (Lower(option_info.type) = "integer") Or Lower(option_info.type) = "float" Then
156
+    If option_info.min <> "" Then
157
+      If option_info.max <> "" Then
158
+        imin = CInt(CFloat(option_info.min)) 
159
+        imax = CInt(CFloat(option_info.max)) 
160
+        istep = (imax - imin) Div 10
161
+        If istep < 1 Then istep = 1
162
+        'fill min to max values, max 10 values
163
+        For i = imin To imax Step istep
164
+          If (Lower(option_info.type) = "integer") Then 
165
+            combonext.Add(i)
166
+              Else
167
+            combonext.Add(i & ".000")
168
+          Endif
169
+        Next 'i
170
+        'make sure last value is the max
171
+        If (Lower(option_info.type) = "float") Then 
172
+          If combonext[combonext.count - 1].text <> imax & ".000" Then
173
+            Stop
174
+            combonext.Add(imax & ".000")
175
+          Endif
176
+            Else
177
+          If combonext[combonext.count - 1].text <> imax Then
178
+            combonext.Add(imax)
179
+          Endif
180
+        Endif
181
+      Endif
182
+    Endif
183
+  Endif
184
+
185
+  
186
+  
187
+  If (Lower(option_info.type) = "flag") Then
188
+    combonext.Add("yes")
189
+    combonext.Add("no")
190
+  Endif
191
+
192
+  If Not (option_info.choices = Null) Then
193
+    If (option_info.min = "") And (option_info.max = "")
194
+      For Each choice In option_info.choices
195
+        combonext.Add(choice)
196
+      Next
197
+    Endif
198
+  Endif
199
+
200
+  'If Trim(prev_value) = "" Then 
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/GeneralOptions.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/GeneralOptions.form Changed
201
 
1
@@ -25,7 +25,7 @@
2
     }
3
   }
4
   { GENERALOPTIONSFRAME Frame
5
-    MoveScaled(0,0,86,69)
6
+    MoveScaled(0,0,96,69)
7
     Expand = True
8
     { VBox1 VBox
9
       MoveScaled(1,1,22,67)
10
@@ -40,7 +40,7 @@
11
       }
12
     }
13
     { Tabstrip1 TabStrip
14
-      MoveScaled(27,0,62,67)
15
+      MoveScaled(25,0,64,67)
16
       Tag = "User options"
17
       Expand = True
18
       Arrangement = Arrange.Vertical
19
@@ -94,7 +94,7 @@
20
         }
21
         { NoParseBox123 Panel
22
           MoveScaled(2,16,47,4.5714)
23
-          ToolTip = ("Select the preferred hardware decoding method.\n(decode api + video output driver)\n\nCaveats that applies to anything but \"no\" and \"vaapi-copy\"\n- Any video driver in the chains window is overriden\n- Use of video filters will disable hardware decoding")
24
+          ToolTip = ("Select the preferred hardware decoding method.\n(decode api + video output driver)\n\nCaveats that applies to anything but \"no\" and \"*-copy\"\n- Any video driver in the chains window is overriden\n- Use of video filters will disable hardware decoding")
25
           Arrangement = Arrange.Horizontal
26
           Spacing = True
27
           Indent = True
28
@@ -105,12 +105,11 @@
29
           }
30
           { NOPARSE_HwdecCombobox ComboBox
31
             MoveScaled(20,0,27,4.5714)
32
-            #Translate = False
33
-            ToolTip = "Select the preferred hardware decoding method.\n(decode api + video output driver)\n\nCaveats that applies to anithing but \"no\" and \"vaapi-copy\"\n- Any video driver in the chains window is overriden\n- Use of video filters will disable hardware decoding"
34
+            ToolTip = ("Select the preferred hardware decoding method.\n(decode api + video output driver)\n\nCaveats that applies to anything but \"no\" and \"vaapi-copy\"\n- Any video driver in the chains window is overriden\n- Use of video filters will disable hardware decoding")
35
             Expand = True
36
             ReadOnly = True
37
-            List = ["no (allows all video filters and drivers)", "auto + opengl (may allows only gamma adjustments)", "auto + vdpau (allows equalization, but gamma)", "auto + vaapi (allows equalization, but gamma)", "vdpau + vdpau (allows equalization, but gamma)", "vdpau + opengl (may allows only gamma adjustments)", "vaapi + vaapi (allows equalization, but gamma)", "vaapi + opengl (allows only gamma adjustments)", "vaapi-copy (allows all video filters and drivers - Intel only)"]
38
-            Text = "0 - disabled (allow all video processing filters)"
39
+            List = [("no (allows all video filters and drivers)"), ("auto + opengl (may allows only gamma adjustments)"), ("auto + vdpau (allows equalization, but gamma)"), ("auto + vaapi (allows equalization, but gamma)"), ("vdpau + vdpau (allows equalization, but gamma)"), ("vdpau + opengl (may allows only gamma adjustments)"), ("vaapi + vaapi (allows equalization, but gamma)"), ("vaapi + opengl (allows only gamma adjustments)"), ("vaapi-copy (allows all video filters and drivers - Intel only)"), ("cuda + opengl (check if your ffmpeg and mpv supports it)"), ("cuda-copy (see previous)")]
40
+            Text = ("no (allows all video filters and drivers)")
41
           }
42
         }
43
         { Panel3 HBox
44
@@ -388,10 +387,10 @@
45
           ToolTip = ("Select an audio driver and an audio device at once.\nNote that any audio driver explicitaly selected in the chains window\nwill override this setting.\n\nmpv option: --audio-device")
46
           Spacing = True
47
           { UseMpvInternalMixerCheckBox CheckBox
48
-            MoveScaled(1,0,43,4.5714)
49
+            MoveScaled(1,0,47,5)
50
             ToolTip = ("Checked: volume changes will affect the internal mpv volume.\nUnchecked: volume changes will change the system volume:\n(on ALSA this usually changes system-wide audio,\nwhile with PulseAudio, this controls per-application volume.)\n\nHINT: Pulseaudio users may want to UNCHECK this.")
51
             AutoResize = True
52
-            Text = ("Use mpv internal mixer (disables maximum amplification)")
53
+            Text = ("Use mpv internal mixer (enables maximum amplification)")
54
           }
55
         }
56
       }
57
@@ -1628,6 +1627,9 @@
58
             Value = CheckBox.True
59
           }
60
         }
61
+        { NOPARSESEP1 Separator
62
+          MoveScaled(4,48,45,1)
63
+        }
64
         { NoParse20 HBox
65
           MoveScaled(1,47,50,4.5714)
66
           ToolTip = ("Enable/Disbale the tray icon")
67
@@ -1639,9 +1641,6 @@
68
             Text = ("Use Tray icon (xt7-player restart needed)")
69
           }
70
         }
71
-        { NOPARSESEP1 Separator
72
-          MoveScaled(4,48,45,1)
73
-        }
74
         { NoParse12 HBox
75
           MoveScaled(1,51,50,4.5714)
76
           Spacing = True
77
@@ -1674,7 +1673,7 @@
78
       Index = 11
79
       Text = ("User Options")
80
       { ScrollViewUserOptions ScrollView
81
-        MoveScaled(1,0,60,62)
82
+        MoveScaled(-1,0,64,62)
83
         Tag = "Audio CD"
84
         Expand = True
85
         Arrangement = Arrange.Vertical
86
@@ -1682,7 +1681,7 @@
87
         Margin = True
88
         Padding = 6
89
         { NOPARSELabel25 Label
90
-          MoveScaled(1,1,57,3)
91
+          MoveScaled(-15,1,57,3)
92
           Text = ("The following options will be appended to mpv command line:")
93
         }
94
         { NoParseUserOption1 HBox
95
@@ -1692,243 +1691,523 @@
96
           Spacing = True
97
           { UserOptionChackbox1 CheckBox notifyobj
98
             Name = "UserOptionChackbox1"
99
-            MoveScaled(1,0,5,4.5714)
100
+            MoveScaled(1,0,5,5)
101
           }
102
-          { ComboBox1 ComboBox
103
-            MoveScaled(7,0,22,4.5714)
104
+          { ComboBox1 ComboBox ComboOption
105
+            Name = "ComboBox1"
106
+            MoveScaled(9,-1,16,5)
107
             Expand = True
108
           }
109
           { TextLabel1 TextLabel
110
-            MoveScaled(30,0,4,4.5714)
111
+            MoveScaled(27,0,4,4.5714)
112
             AutoResize = True
113
             Text = ("=")
114
             Alignment = Align.Center
115
           }
116
-          { NOPARSEAdditionaldata1 TextBox
117
-            MoveScaled(34,0,22,4.5714)
118
+          { NOPARSEAdditionaldata1 ComboBox uservalue
119
+            Name = "NOPARSEAdditionaldata1"
120
+            MoveScaled(31,0,17.1429,4.5714)
121
             Expand = True
122
           }
123
         }
124
         { NoParseUserOption2 HBox
125
-          MoveScaled(-1,9,57,4.5714)
126
+          MoveScaled(1,10,57,4.5714)
127
           ToolTip = ("mpv options in the format \"name = value\"")
128
           AutoResize = True
129
           Spacing = True
130
           { UserOptionChackbox2 CheckBox notifyobj
131
             Name = "UserOptionChackbox2"
132
-            MoveScaled(1,0,5,4.5714)
133
+            MoveScaled(1,0,5,5)
134
           }
135
-          { ComboBox2 ComboBox
136
-            MoveScaled(9,0,22,4.5714)
137
+          { ComboBox2 ComboBox ComboOption
138
+            Name = "ComboBox2"
139
+            MoveScaled(9,-1,16,5)
140
             Expand = True
141
           }
142
           { TextLabel2 TextLabel
143
-            MoveScaled(30,0,4,4.5714)
144
+            MoveScaled(27,0,4,4.5714)
145
             AutoResize = True
146
             Text = ("=")
147
             Alignment = Align.Center
148
           }
149
-          { NOPARSEAdditionaldata2 TextBox
150
-            MoveScaled(34,0,22,4.5714)
151
+          { NOPARSEAdditionaldata2 ComboBox uservalue
152
+            Name = "NOPARSEAdditionaldata2"
153
+            MoveScaled(31,0,17.1429,4.5714)
154
             Expand = True
155
           }
156
         }
157
-        { NoParseUserOption3 HBox
158
-          MoveScaled(-1,13,57,4.5714)
159
+        { NoParseUserOption4 HBox
160
+          MoveScaled(1,15,57,4.5714)
161
           ToolTip = ("mpv options in the format \"name = value\"")
162
           AutoResize = True
163
           Spacing = True
164
-          { UserOptionChackbox3 CheckBox notifyobj
165
-            Name = "UserOptionChackbox3"
166
-            MoveScaled(1,0,5,4.5714)
167
+          { UserOptionChackbox4 CheckBox notifyobj
168
+            Name = "UserOptionChackbox4"
169
+            MoveScaled(1,0,5,5)
170
           }
171
-          { ComboBox3 ComboBox
172
-            MoveScaled(9,0,22,4.5714)
173
+          { ComboBox4 ComboBox ComboOption
174
+            Name = "ComboBox4"
175
+            MoveScaled(9,-1,16,5)
176
             Expand = True
177
           }
178
-          { TextLabel3 TextLabel
179
-            MoveScaled(31,0,4,4.5714)
180
+          { TextLabel4 TextLabel
181
+            MoveScaled(27,0,4,4.5714)
182
             AutoResize = True
183
             Text = ("=")
184
             Alignment = Align.Center
185
           }
186
-          { NOPARSEAdditionaldata3 TextBox
187
-            MoveScaled(34,0,22,4.5714)
188
+          { NOPARSEAdditionaldata4 ComboBox uservalue
189
+            Name = "NOPARSEAdditionaldata4"
190
+            MoveScaled(31,0,17.1429,4.5714)
191
             Expand = True
192
           }
193
         }
194
-        { NoParseUserOption4 HBox
195
-          MoveScaled(-2,19,57,4.5714)
196
+        { NoParseUserOption3 HBox
197
+          MoveScaled(1,20,57,4.5714)
198
           ToolTip = ("mpv options in the format \"name = value\"")
199
           AutoResize = True
200
           Spacing = True
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/MyQuestion.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/MyQuestion.class Changed
139
 
1
@@ -4,40 +4,9 @@
2
 Public answer As Integer = -1
3
 Private MessageAlreadyShown As Boolean = False
4
 
5
-Public Function OLDAsk(TheQuestionString As String, TheButton1String As String, TheButton2String As String, Optional CheckboxString As String = "", Optional CheckboxObject As Checkbox) As Integer
6
-  If MessageAlreadyShown Then answer = 5
7
-  Wait 1
8
-  If Not MessageAlreadyShown Then
9
-    MessageAlreadyShown = True
10
-    answer = -1
11
-    QuestionLabel.text = TheQuestionString
12
-    Button1.text = TheButton1String
13
-    Button2.text = TheButton2String
14
-    Me.x = Mouse.screenx - (Me.w Div 2)
15
-    Me.y = Mouse.screeny - Me.h - 90
16
-    Checkbox1.visible = (Checkboxstring <> "")
17
-    If checkboxstring <> "" Then
18
-      Checkbox1.text = CheckboxString
19
-      Checkbox1.value = Checkboxobject.value
20
-
21
-      Checkbox1.Width = Checkbox1.Font.TextWidth(Checkbox1.text) + MyIcon.Width + 32 + FMain.padding + FMain.spacing
22
-    Endif
23
-    Me.show
24
-    Repeat
25
-      Wait 0.25
26
-    Until answer <> -1
27
-    If checkboxstring <> "" Then Checkboxobject.value = Checkbox1.value
28
-    MyQuestion.close
29
-    MyQuestion.hide
30
-    MessageAlreadyShown = False
31
-    Return answer
32
-      Else
33
-    Return -1
34
-  Endif
35
-End
36
 
37
 Public Function Ask(TheQuestionString As String, TheButton1String As String, TheButton2String As String, Optional CheckboxString As String = "", Optional CheckboxObject As Checkbox) As Integer
38
-
39
+  Wait 0.2 'bug with qt5 that makes xt7 unresponsive
40
   If Not MessageAlreadyShown Then
41
     MessageAlreadyShown = True
42
     answer = -1
43
@@ -47,10 +16,6 @@
44
     Button2.text = TheButton2String
45
     Button1.W = Button1.Font.TextWidth(Button1.text & "------")
46
     Button2.W = Button2.Font.TextWidth(Button2.text & "------")
47
-    Me.x = Mouse.screenx - (Me.w Div 2)
48
-    Me.y = Mouse.screeny - Me.h '- 90
49
-    If Me.x <= 0 Then Me.x = 1
50
-    If Me.y <= 0 Then Me.y = 1
51
 
52
     Checkbox1.visible = (Checkboxstring <> "")
53
     If checkboxstring <> "" Then
54
@@ -58,24 +23,13 @@
55
       Checkbox1.value = Checkboxobject.value
56
       Checkbox1.Width = Checkbox1.Font.TextWidth(Checkbox1.text) + 32
57
     Endif
58
-    Wait
59
-    Me.Show()
60
-    Me.Refresh()
61
-    Wait
62
-    global.myDebug(vbox1.w)
63
-    'Me.w = Max((QuestionLabel.w + MyIcon.w), (Button1.W + Button2.W + vbox2.w + vbox1.w)) + (Me.padding * 3)
64
-    Me.w = Max((QuestionLabel.w + MyIcon.w), (Button1.W + Button2.W)) + (Desktop.scale * 8)
65
-    Me.h = Button1.h + Max(questionlabel.Font.TextHeight("|"), MyIcon.h) + (Desktop.scale * 4)
66
+
67
     If Checkbox1.visible Then Me.h += Checkbox1.h
68
-    Me.Hide()
69
+
70
     Me.ShowModal()
71
 
72
-    Repeat
73
-      Wait '0.25
74
-    Until (answer <> -1) Or (Me.visible = False)
75
     If checkboxstring <> "" Then Checkboxobject.value = Checkbox1.value
76
-    'MyQuestion.close
77
-    'MyQuestion.hide
78
+
79
     MessageAlreadyShown = False
80
     Return answer
81
       Else
82
@@ -83,36 +37,38 @@
83
  Endif
84
 End
85
 
86
+Private Sub shrink()
87
+Me.minimized = True
88
+  Me.autoresize = False
89
+  questionlabel.autoresize = False
90
+  hbox1.autoresize = False
91
+  Me.autoresize = False
92
+  Me.Resize(64, 64)
93
+  questionlabel.Resize(64, 64)
94
+  hbox1.Resize(64, 64)
95
+  questionlabel.autoresize = True
96
+  hbox1.autoresize = True
97
+  Me.autoresize = True
98
+End
99
+
100
 
101
 Public Sub Button1_Click()
102
-  MyQuestion.hide
103
+  MyQuestion.close
104
   answer = 1
105
-End
106
+ End
107
 
108
 Public Sub Button2_Click()
109
-  MyQuestion.hide
110
+  MyQuestion.close
111
   answer = 2
112
 End
113
 
114
 Public Sub MyQuestion_Close()
115
-  Me.hide
116
+  Me.Opacity = 0
117
+  shrink()
118
+  Me.opacity = 100
119
   answer = 3
120
 End
121
 
122
-Public Sub Form_Hide()
123
-  Me.SkipTaskbar = False
124
-End
125
-
126
-Public Sub Form_Show()
127
-    Me.SkipTaskbar = True
128
-End
129
-
130
-Public Sub ButtonContainer_MouseDown()
131
-
132
-  
133
-
134
-End
135
-
136
 Public Sub Button1_KeyPress()
137
   If (Key.code = Key.return) Or (Key.code = Key.enter) Then Button1_Click()
138
 End
139
xt7-player-mpv-0.20.384.tar.gz/.src/Form/MyQuestion.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/MyQuestion.form Changed
52
 
1
@@ -4,15 +4,15 @@
2
   MoveScaled(0,0,36,22)
3
   Visible = False
4
   Icon = Picture["icon:/16/question"]
5
-  Persistent = True
6
   Resizable = False
7
-  Stacking = Window.Above
8
   SkipTaskbar = True
9
   Arrangement = Arrange.Vertical
10
+  AutoResize = True
11
+  Spacing = True
12
   Margin = True
13
   Padding = 8
14
   { HBox1 Panel
15
-    MoveScaled(1,1,31,5)
16
+    MoveScaled(1,3,31,5)
17
     Arrangement = Arrange.Horizontal
18
     AutoResize = True
19
     Spacing = True
20
@@ -34,27 +34,22 @@
21
     Visible = False
22
     Text = ("CheckBox1")
23
   }
24
-  { ButtonContainer HBox
25
+  { ButtonContainer Panel
26
     MoveScaled(0,16,33,6)
27
+    Arrangement = Arrange.Horizontal
28
     AutoResize = True
29
     Spacing = True
30
-    { VBox1 VBox
31
-      MoveScaled(0,0,3,4.5714)
32
-      Expand = True
33
-    }
34
     { Button1 Button
35
       MoveScaled(2,1,13,4.5714)
36
+      Expand = True
37
       AutoResize = True
38
       Text = ("Button1")
39
     }
40
     { Button2 Button
41
       MoveScaled(16,1,14,4.5714)
42
+      Expand = True
43
       AutoResize = True
44
       Text = ("Button2")
45
     }
46
-    { VBox2 VBox
47
-      MoveScaled(30,1,3,4.5714)
48
-      Expand = True
49
-    }
50
   }
51
 }
52
xt7-player-mpv-0.20.384.tar.gz/.src/Form/NewChains.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/NewChains.class Changed
201
 
1
@@ -3,6 +3,20 @@
2
 Public AlreadyLoaded As Boolean = False 'true if the form loaded it's settings from disk at least one time
3
 Public InitDone As Boolean = False
4
 
5
+Public Struct mpvOption
6
+  name As String
7
+  data As String
8
+End Struct
9
+
10
+Private Function newopt(name As String, data As String) As MpvOption
11
+  Dim myopt As New MpvOption
12
+  myopt.name = name
13
+  myopt.data = data
14
+  Return myopt
15
+End
16
+
17
+
18
+
19
 Private Sub fill_tabstrip(aTabstrip As Tabstrip, aScrollview As Scrollview)
20
   Dim i As Integer
21
   Dim tabScrollview As ScrollView
22
@@ -67,7 +81,7 @@
23
 Private Sub Init_drivers_audio()
24
   Dim drivers_audio_list As New String[]
25
   Dim driver As String
26
-  drivers_audio_list = ["alsa", "pulse", "jack", "pcm", "custom audio", "null"]
27
+  drivers_audio_list = ["alsa", "pulse", "jack", "pcm", "null"]
28
   For Each driver In drivers_audio_list
29
     draw_list_item(drivers_audio_container, driver)
30
   Next
31
@@ -78,7 +92,7 @@
32
 Private Sub Init_drivers_video()
33
   Dim drivers_video_list As New String[]
34
   Dim driver As String
35
-  drivers_video_list = ["opengl", "xv", "vdpau", "vaapi", "x11", "custom video", "null"]
36
+  drivers_video_list = ["opengl", "xv", "vdpau", "vaapi", "x11", "null"]
37
   For Each driver In drivers_video_list
38
     draw_list_item(drivers_video_container, driver)
39
   Next
40
@@ -98,8 +112,8 @@
41
     filter_button_up = New Button(filter_box) As "filter_button_up"
42
       filter_button_up.border = False
43
       filter_button_up.text = ""
44
-      filter_button_up.w = 16
45
-      filter_button_up.h = 16
46
+      filter_button_up.w = 20
47
+      filter_button_up.h = 20
48
       filter_button_up.picture = stock["16/up"]
49
     
50
     'a button to move the item in the list
51
@@ -107,8 +121,8 @@
52
       filter_button_down.border = False
53
       filter_button_down.picture = stock["16/down"]
54
       filter_button_down.text = ""
55
-      filter_button_down.w = 16
56
-      filter_button_down.h = 16
57
+      filter_button_down.w = 20
58
+      filter_button_down.h = 20
59
 
60
     'a checkbox to enable/disable the item
61
     filter_checkbox = New CheckBox(filter_box) As "filter_checkbox"
62
@@ -240,6 +254,8 @@
63
 
64
 Private Sub select_item(item As Object)
65
   Dim bro As Object
66
+  Dim ovr As String
67
+    
68
   If item.parent.parent.enabled Then
69
     For Each bro In item.parent.parent.Children
70
       If bro Is HBox Then
71
@@ -249,9 +265,13 @@
72
     Next
73
     item.parent.background = Color.SelectedBackground
74
     item.parent.foreground = Color.SelectedForeground
75
+    
76
+    Select_tabstrip_item(item.parent.name, item.parent.parent.tag)  
77
   Endif
78
-  Select_tabstrip_item(item.parent.name, item.parent.parent.tag)
79
-
80
+    
81
+  
82
+  
83
+    
84
   If textareahelp.visible Then
85
     timerDelayShowHelp.start
86
   Endif
87
@@ -385,6 +405,11 @@
88
   AllParams.add(["RANGEFLOAT", "limit", "0.1", "1", "1", "alimiter3", ""]) 
89
   AllParams.add(["RANGE", "attack", "1", "5", "80", "alimiter4", ""]) 
90
   AllParams.add(["RANGE", "release", "1", "2000", "8000", "alimiter5", ""]) 
91
+  
92
+  
93
+  AllParams.add(["RANGE", "asc", "0", "1", "1", "alimiter6", ("Keep asc =1 active to avoid distortions on systems with more than 2 speakers")]) 
94
+  AllParams.add(["RANGEFLOAT", "asc_level", "0", "1", "1", "alimiter7", ""]) 
95
+  
96
   AllParams.Add(["TIP", ("This filter is a good volume normalizer"), "alimiter6", ""])
97
   AllParams.Add(["TIP", ("It is best to place the volume filter after alimiter"), "alimiter7", ""])
98
   Global.DrawGui(AllParams, "alimiter", aTabstrip, False,,, "lavfi")
99
@@ -766,7 +791,6 @@
100
                 Endif
101
                   Else
102
                 If parse Then
103
-                  Print subobject.name
104
                   TmpString = global.RemoveShortcut(TmpString & ":")
105
                 Endif
106
               Endif
107
@@ -790,63 +814,63 @@
108
 
109
 
110
 
111
-Private Function OLD_Parse_video_filter(Filtername As String) As String
112
-  'will parse the tabstrip at filtername index and output
113
-  'a commandline to add a filter in mplayer
114
-  Dim ParsedFilter As String = Lower(FilterName)
115
-  Dim TmpString As String = ""
116
-  Dim MyScrollView As Object   'the scrollview present in every tab, parent of all the controls in the tab
117
-  Dim PanelObject As Object 'the Hbox which contains a single parameter it Is Created by DrawFiltersGui
118
-  Dim SubObject As Object
119
-  Dim aTabstrip As Tabstrip = TabStrip_filters_video
120
-  Dim i As Integer
121
-  Dim parse As Boolean = True
122
-  Dim out As String
123
-  Dim is_lavfi As Boolean = False
124
-  i = aTabstrip.index
125
-  'Find the ParsedFilter Tab and activate it:
126
-  aTabstrip.index = Global.TabIndexByName(ParsedFilter, aTabstrip)
127
-  If Parsedfilter Like "customvideo*" Then
128
-    out = Parse_video_filter_Custom()
129
-    aTabstrip.index = i
130
-    Return out
131
-      Else
132
-    'Discend the Tab objects,parse them and build the commandline
133
-    'hierarchy is:
134
-    'Tabstrip -> scrollviews -> Panels -> ParameterObjects
135
-    For Each MyScrollview In aTabstrip.Children
136
-      If MyScrollView.tag = "lavfi" Then is_lavfi = True
137
-      For Each PanelObject In MyScrollView.Children
138
-        If PanelObject.name Like "*HBox" Then
139
-          For Each SubObject In PanelObject.Children
140
-            If Not (SubObject Is Label) Then
141
-              If Not ((SubObject Is Checkbox) Or (subobject.name Like "NOPARSE*")) Then
142
-                parse = True
143
-                ' Stop
144
-                ' If PanelObject.tag = "lavfi" Then
145
-                '   Break
146
-                ' Endif
147
-                  Else
148
-                parse = SubObject.value '(is a checkbox,parse only if it is checked)
149
-              Endif
150
-              If SubObject.text <> "" Then
151
-                If parse Then TmpString = global.RemoveShortcut(TmpString & Split(SubObject.text, " ")[0] & ":")
152
-                  Else
153
-                If parse Then TmpString = global.RemoveShortcut(TmpString & ":")
154
-              Endif
155
-            Endif
156
-          Next
157
-        Endif
158
-      Next
159
-    Next
160
-    TmpString = Left(Tmpstring, Len(TmpString) - 1)
161
-    aTabstrip.index = i
162
-    If tmpstring <> "" Then parsedfilter = ParsedFilter & "=" & TmpString
163
-    If is_lavfi Then parsedfilter = "lavfi=[" & parsedfilter & "]"
164
-    Return ParsedFilter
165
-
166
-  Endif
167
-End
168
+' Private Function OLD_Parse_video_filter(Filtername As String) As String
169
+'   'will parse the tabstrip at filtername index and output
170
+'   'a commandline to add a filter in mplayer
171
+'   Dim ParsedFilter As String = Lower(FilterName)
172
+'   Dim TmpString As String = ""
173
+'   Dim MyScrollView As Object   'the scrollview present in every tab, parent of all the controls in the tab
174
+'   Dim PanelObject As Object 'the Hbox which contains a single parameter it Is Created by DrawFiltersGui
175
+'   Dim SubObject As Object
176
+'   Dim aTabstrip As Tabstrip = TabStrip_filters_video
177
+'   Dim i As Integer
178
+'   Dim parse As Boolean = True
179
+'   Dim out As String
180
+'   Dim is_lavfi As Boolean = False
181
+'   i = aTabstrip.index
182
+'   'Find the ParsedFilter Tab and activate it:
183
+'   aTabstrip.index = Global.TabIndexByName(ParsedFilter, aTabstrip)
184
+'   If Parsedfilter Like "customvideo*" Then
185
+'     out = Parse_video_filter_Custom()
186
+'     aTabstrip.index = i
187
+'     Return out
188
+'       Else
189
+'     'Discend the Tab objects,parse them and build the commandline
190
+'     'hierarchy is:
191
+'     'Tabstrip -> scrollviews -> Panels -> ParameterObjects
192
+'     For Each MyScrollview In aTabstrip.Children
193
+'       If MyScrollView.tag = "lavfi" Then is_lavfi = True
194
+'       For Each PanelObject In MyScrollView.Children
195
+'         If PanelObject.name Like "*HBox" Then
196
+'           For Each SubObject In PanelObject.Children
197
+'             If Not (SubObject Is Label) Then
198
+'               If Not ((SubObject Is Checkbox) Or (subobject.name Like "NOPARSE*")) Then
199
+'                 parse = True
200
+'                 ' Stop
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/NewChains.form -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/NewChains.form Changed
201
 
1
@@ -27,6 +27,18 @@
2
     MoveScaled(21,0,18,4.5714)
3
     Visible = False
4
   }
5
+  { filters_video_order TextBox
6
+    MoveScaled(1,0,18,4.5714)
7
+    Visible = False
8
+  }
9
+  { drivers_video_order TextBox
10
+    MoveScaled(40,0,18,4.5714)
11
+    Visible = False
12
+  }
13
+  { drivers_audio_order TextBox
14
+    MoveScaled(60,0,19,4.5714)
15
+    Visible = False
16
+  }
17
   { TabStrip1 TabStrip
18
     MoveScaled(3,7,95,60)
19
     Expand = True
20
@@ -83,6 +95,13 @@
21
       Background = Color.TextBackground
22
       Arrangement = Arrange.Vertical
23
     }
24
+    { ButtonLadspaHelper Button
25
+      MoveScaled(34,49,14,4.5714)
26
+      Visible = False
27
+      ToolTip = ("Show a tool that helps you to compile ladspa filter parameters.\nIf you don't use ladspa, just don't push it.")
28
+      Text = ("Ladspa")
29
+      Picture = Picture["icon:/16/tools"]
30
+    }
31
     { TabStrip_filters_audio TabStrip
32
       MoveScaled(33,2,56,47)
33
       #Translate = False
34
@@ -314,13 +333,6 @@
35
       }
36
       Index = 0
37
     }
38
-    { ButtonLadspaHelper Button
39
-      MoveScaled(34,49,14,4.5714)
40
-      Visible = False
41
-      ToolTip = ("Show a tool that helps you to compile ladspa filter parameters.\nIf you don't use ladspa, just don't push it.")
42
-      Text = ("Ladspa")
43
-      Picture = Picture["icon:/16/tools"]
44
-    }
45
     Index = 2
46
     Text = ("Video Drivers")
47
     Picture = Picture["icon:/small/video"]
48
@@ -347,12 +359,12 @@
49
       }
50
     }
51
     { ConfigureTabs_video TabStrip
52
-      MoveScaled(30,4,62,47)
53
+      MoveScaled(30,2,62,47)
54
       Expand = True
55
       Arrangement = Arrange.Vertical
56
       Margin = True
57
       Padding = 4
58
-      Count = 7
59
+      Count = 6
60
       TextFont = Font["-1"]
61
       Index = 0
62
       Text = ("Xv")
63
@@ -368,7 +380,7 @@
64
           { PortChk2XV CheckBox
65
             MoveScaled(1,1,15,4.5714)
66
             #Translate = False
67
-            Tag = "adaptor="
68
+            Tag = "xv-adaptor"
69
             Text = "Adaptor"
70
           }
71
           { SpinBox10Xv SpinBox notifyobj
72
@@ -378,7 +390,7 @@
73
           }
74
         }
75
         { TextBoxAdaptorsxv TextArea
76
-          MoveScaled(8,10,44,15)
77
+          MoveScaled(0,8,44,15)
78
           Text = ("TextBox8")
79
           ReadOnly = True
80
         }
81
@@ -386,88 +398,217 @@
82
       Index = 1
83
       Text = ("opengl")
84
       { GLScrollView ScrollView
85
-        MoveScaled(2,-2,58,44)
86
+        MoveScaled(2,3,58,44)
87
         Expand = True
88
         Arrangement = Arrange.Vertical
89
         Spacing = True
90
         Padding = 4
91
         Border = False
92
-        { openglParseMeHBox1 HBox
93
-          MoveScaled(0,2,45,6)
94
+        { openglParseMeHBox6 HBox
95
+          MoveScaled(1,-1,45,6)
96
           AutoResize = True
97
           Padding = 8
98
-          { CheckBox3gl2 CheckBox
99
+          { CheckBox3gl5 CheckBox
100
             MoveScaled(1,1,17,4.5714)
101
             #Translate = False
102
-            Tag = "backend="
103
+            Tag = "opengl-backend"
104
             Text = "backend"
105
             Value = CheckBox.True
106
           }
107
-          { ComboBox1gl2 ComboBox
108
+          { ComboBox1gl4 ComboBox
109
             MoveScaled(19,1,24,4.5714)
110
             #Translate = False
111
             Expand = True
112
-            ReadOnly = True
113
             List = ["auto", "x11", "x11egl"]
114
             Text = "x11"
115
           }
116
         }
117
+        { Separator2 Separator
118
+          MoveScaled(0,6,51,1)
119
+        }
120
+        { openglParseMeHBox2 HBox
121
+          MoveScaled(0,8,45,6)
122
+          AutoResize = True
123
+          Padding = 8
124
+          { Button2 Button
125
+            MoveScaled(1,1,20,4)
126
+            Text = ("Apply HQ profile")
127
+          }
128
+        }
129
         { openglParseMeHBox10 HBox
130
-          MoveScaled(0,9,45,6)
131
+          MoveScaled(0,14,45,6)
132
           AutoResize = True
133
           Padding = 8
134
           { CheckBox3gl CheckBox
135
             MoveScaled(1,1,17,4.5714)
136
             #Translate = False
137
-            Tag = "scale="
138
+            Tag = "scale"
139
             Text = "scale"
140
           }
141
           { ComboBox1gl ComboBox
142
             MoveScaled(19,1,24,4.5714)
143
             #Translate = False
144
             Expand = True
145
-            ReadOnly = True
146
-            List = ["bilinear", "spline36", "lanczos", "ewa_lanczos", "mitchell"]
147
+            List = ["bilinear", "bicubic_fast", "oversample", "spline16", "spline36", "spline64", "sinc", "lanczos", "ginseng", "jinc", "ewa_lanczos", "ewa_hanning", "ewa_ginseng", "ewa_lanczossharp", "ewa_lanczossoft", "haasnsoft", "bicubic", "bcspline", "catmull_rom", "mitchell", "robidoux", "robidouxsharp", "ewa_robidoux", "ewa_robidouxsharp", "box", "nearest", "triangle", "gaussian"]
148
             Text = "bilinear"
149
           }
150
         }
151
-        { openglParseMeHBox2 HBox
152
-          MoveScaled(0,15,45,6)
153
+        { openglParseMeHBox5 HBox
154
+          MoveScaled(0,20,45,6)
155
+          AutoResize = True
156
+          Padding = 8
157
+          { CheckBox3gl4 CheckBox
158
+            MoveScaled(1,1,17,4.5714)
159
+            #Translate = False
160
+            Tag = "cscale"
161
+            Text = "cscale"
162
+          }
163
+          { ComboBox1gl3 ComboBox
164
+            MoveScaled(19,1,24,4.5714)
165
+            #Translate = False
166
+            Expand = True
167
+            List = ["bilinear", "bicubic_fast", "oversample", "spline16", "spline36", "spline64", "sinc", "lanczos", "ginseng", "jinc", "ewa_lanczos", "ewa_hanning", "ewa_ginseng", "ewa_lanczossharp", "ewa_lanczossoft", "haasnsoft", "bicubic", "bcspline", "catmull_rom", "mitchell", "robidoux", "robidouxsharp", "ewa_robidoux", "ewa_robidouxsharp", "box", "nearest", "triangle", "gaussian"]
168
+            Text = "bilinear"
169
+          }
170
+        }
171
+        { openglParseMeHBox9 HBox
172
+          MoveScaled(0,26,45,6)
173
+          AutoResize = True
174
+          Padding = 8
175
+          { CheckBox3gl6 CheckBox
176
+            MoveScaled(1,1,17,4.5714)
177
+            #Translate = False
178
+            Tag = "dscale"
179
+            Text = "dscale"
180
+          }
181
+          { ComboBox1gl5 ComboBox
182
+            MoveScaled(19,1,24,4.5714)
183
+            #Translate = False
184
+            Expand = True
185
+            List = ["bilinear", "bicubic_fast", "oversample", "spline16", "spline36", "spline64", "sinc", "lanczos", "ginseng", "jinc", "ewa_lanczos", "ewa_hanning", "ewa_ginseng", "ewa_lanczossharp", "ewa_lanczossoft", "haasnsoft", "bicubic", "bcspline", "catmull_rom", "mitchell", "robidoux", "robidouxsharp", "ewa_robidoux", "ewa_robidouxsharp", "box", "nearest", "triangle", "gaussian"]
186
+            Text = "bilinear"
187
+          }
188
+        }
189
+        { openglParseMeHBox1 HBox
190
+          MoveScaled(0,32,45,6)
191
+          AutoResize = True
192
+          Padding = 8
193
+          { CheckBox3gl2 CheckBox
194
+            MoveScaled(1,1,17,4.5714)
195
+            #Translate = False
196
+            Tag = "dither-depth"
197
+            Text = "dither depth"
198
+          }
199
+          { ComboBox1gl2 ComboBox
200
+            MoveScaled(19,1,24,4.5714)
201
xt7-player-mpv-0.20.384.tar.gz/.src/Form/SubAndOsd.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/SubAndOsd.class Changed
64
 
1
@@ -56,13 +56,13 @@
2
       AssForceStyle = AssForceStyle & FontName
3
       AssForceStyle = AssForceStyle & ",FontSize=" & CStr(FontString.Font.Size)
4
       'If FontString.Font.Bold Then AssForceStyle = AssForceStyle & ",Bold=1"
5
-      If FontString.Font.Bold Then opts.push(o("sub-text-bold", "yes"))
6
+      If FontString.Font.Bold Then opts.push(o("sub-bold", "yes"))
7
       If FontString.Font.Italic Then AssForceStyle = AssForceStyle & ",Italic=1" 
8
 
9
       SubFontName = FontString.Font.name
10
       'If FontString.Font.Bold Then SubFontName &= ":style=bold" 'fixmempv: how to do italic and strikeout?
11
-      opts.Push(o("sub-text-font", "\"" & SubFontName & "\""))
12
-      opts.Push(o("sub-text-font-size", CStr(FontString.Font.size)))
13
+      opts.Push(o("sub-font", "\"" & SubFontName & "\""))
14
+      opts.Push(o("sub-font-size", CStr(FontString.Font.size)))
15
 
16
     Endif
17
 
18
@@ -70,22 +70,22 @@
19
       AssForceStyle = AssForceStyle & Outline
20
       AssForceStyle = AssForceStyle & ",OutlineColour=" & rgba2Habgr(Hex(BorderColorBox.value, 6) & Hex(BorderColorSpinBox.value, 2))
21
 
22
-      opts.Add(o("sub-text-border-size", OutLineSpinBox.value))
23
-      opts.Add(o("sub-text-border-color", "#" & Hex(255 - BorderColorSpinBox.value, 2) & Hex(bordercolorBox.value, 6)))
24
+      opts.Add(o("sub-border-size", OutLineSpinBox.value))
25
+      opts.Add(o("sub-border-color", "#" & Hex(255 - BorderColorSpinBox.value, 2) & Hex(bordercolorBox.value, 6)))
26
     Endif
27
 
28
     'maybe redoundant with -ass-color and -ass-border-color, but do it anyway:
29
     If FontColorCHK.value Then 
30
       AssForceStyle = AssForceStyle & ",PrimaryColour=" & rgba2Habgr(Hex(FontColorBox.value, 6) & Hex(FontColorSpinBox.value, 2))
31
-      opts.Add(o("sub-text-color", "#" & Hex(255 - FontColorSpinBox.value, 2) & Hex(FontColorBox.value, 6)))
32
+      opts.Add(o("sub-color", "#" & Hex(255 - FontColorSpinBox.value, 2) & Hex(FontColorBox.value, 6)))
33
     Endif
34
     
35
     If SHADOWCHK.value Then
36
       AssForceStyle = AssForceStyle & Shadow
37
       Assforcestyle = AssForceStyle & ",BackColour=" & rgba2Habgr(Hex(ShadowColorBTN.value, 6) & Hex(ShadowColorSpinBox.value, 2))
38
       
39
-      opts.Add(o("sub-text-shadow-offset", ShadowSpinBox.value))
40
-      opts.Add(o("sub-text-shadow-color", "#" & Hex(255 - ShadowColorSpinBox.value, 2) & Hex(ShadowColorBTN.value, 6)))
41
+      opts.Add(o("sub-shadow-offset", ShadowSpinBox.value))
42
+      opts.Add(o("sub-shadow-color", "#" & Hex(255 - ShadowColorSpinBox.value, 2) & Hex(ShadowColorBTN.value, 6)))
43
     Endif
44
 
45
     If MarginVCHK.value Then 
46
@@ -122,7 +122,7 @@
47
  'push SSA options
48
   If Not ASSDisableCHK.value = True Then 'if the user has not disabled ass rendering,
49
     If assoverridechk.value = True Then 'if the user choose to override ass styles,
50
-      opts.Add(o("ass-force-style", AssForceStyle))
51
+      opts.Add(o("sub-ass-force-style", AssForceStyle))
52
     Endif
53
   Endif
54
   
55
@@ -143,7 +143,7 @@
56
       If (Lower(file.Ext((fullpath))) = "mkv") Then
57
         opts.Add(o("sub-file", "'" & SConv(fullpath) & "'"))
58
         'opts.Add(o("sub-ass", "no")) 'deprecated, use the following instead:
59
-              opts.Add(o("ass-style-override", "strip"))
60
+              opts.Add(o("sub-ass-style-override", "strip"))
61
               opts.Add(o("embeddedfonts", "no"))
62
       Endif
63
     Endif
64
xt7-player-mpv-0.20.384.tar.gz/.src/Form/zzzFake.class -> xt7-player-mpv-0.21.384.tar.gz/.src/Form/zzzFake.class Changed
15
 
1
@@ -17,8 +17,13 @@
2
     Try global.arg_new_instance = Args.Has("n", "new-instance", ("Play in a new instance even if one is already running"))
3
     Try global.arg_start_tray = Args.Has("t", "tray", ("Start minimized in the tray"))
4
     Try global.arg_debug = Args.Has("v", "verbose", ("Enable debug output"))
5
+
6
     
7
   Try global.arg_file = Args.end()[0]
8
+
9
+  Try global.arg_debug = global.arg_debug Or Application.Env["XT7_DEBUG"] = "1"
10
+  If global.arg_file = "" Then Try global.arg_file = Application.Env["XT7_FILE"] 
11
+
12
   
13
   If (global.arg_file <> "") And Left(global.arg_file) <> "/" Then
14
     'convert relative to absolute path
15
xt7-player-mpv-0.20.384.tar.gz/AA_ToDo -> xt7-player-mpv-0.21.384.tar.gz/AA_ToDo Changed
33
 
1
@@ -1,3 +1,31 @@
2
+vo, ao: disable positional parameter suboptions
3
+all VOs and AOs: deprecate sub-options, add them as global options
4
+[opengl-hq]
5
+scale=spline36
6
+cscale=spline36
7
+dscale=mitchell
8
+dither-depth=auto
9
+correct-downscaling=yes
10
+sigmoid-upscaling=yes
11
+deband=yes
12
+
13
+opzioni aggiuntive opengl?
14
+hq preset opengl?
15
+custom audio/custom video?
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
 - Glitches in video area if X11 driver is used and the form is resized
31
 - move colorkey to video output options
32
 - dimensione dei sottotitoli consistente tra le diverse risoluzioni
33
xt7-player-mpv-0.20.384.tar.gz/README.md -> xt7-player-mpv-0.21.384.tar.gz/README.md Changed
35
 
1
@@ -20,7 +20,7 @@
2
 Mandatory requirements:
3
 ======
4
   * Gambas 3 (usually the very latest version)
5
-  * Qt4
6
+  * Qt5 (it is still possible to use Qt4 with little effort)
7
   * mpv
8
 
9
 
10
@@ -40,6 +40,24 @@
11
   http://rg3.github.com/youtube-dl/
12
 
13
 
14
+Qt4 or Qt5?
15
+======
16
+xt7-player works with qt4 and qt5,
17
+but will defaults to qt5 for any release past 0.20.384,
18
+but build it for Qt4 toolkit is still possible:
19
+Just open .project file and change the following lines:
20
+```
21
+ Component=gb.qt5
22
+ Component=gb.qt5.ext
23
+```
24
+to:
25
+```
26
+ Component=gb.qt4
27
+ Component=gb.qt4.ext
28
+```
29
+ 
30
+Then build as follows:
31
+
32
 
33
 Compiling it:
34
 ======
35
xt7-player-mpv-0.21.384.tar.gz/_lua_killer.lua Added
13
 
1
@@ -0,0 +1,10 @@
2
+
3
+pid=###
4
+
5
+timer = mp.add_periodic_timer(3, function()
6
+   
7
+   if os.execute( "cd /proc/" .. pid) == nil then
8
+        mp.command("quit")
9
+    end
10
+
11
+end)
12
\ No newline at end of file
13
xt7-player-mpv-0.21.384.tar.gz/_mpvstats.lua Added
201
 
1
@@ -0,0 +1,573 @@
2
+-- Display some stats.
3
+--
4
+-- Please consult the readme for information about usage and configuration:
5
+-- https://github.com/Argon-/mpv-stats
6
+--
7
+-- Please note: not every property is always available and therefore not always
8
+-- visible.
9
+
10
+local mp = require 'mp'
11
+local options = require 'mp.options'
12
+
13
+-- Options
14
+local o = {
15
+    -- Default key bindings
16
+    key_oneshot = "i",
17
+    key_toggle = "I",
18
+
19
+    duration = 3,
20
+    redraw_delay = 1,                -- acts as duration in the toggling case
21
+    ass_formatting = true,
22
+    timing_warning = true,
23
+    timing_warning_th = 0.85,        -- *no* warning threshold (warning when > target_fps * timing_warning_th)
24
+    print_perfdata_total = false,    -- prints an additional line adding up the perfdata lines
25
+    debug = false,
26
+
27
+    -- Graph options and style
28
+    plot_perfdata = true,
29
+    plot_vsync_ratio = true,
30
+    plot_vsync_jitter = true,
31
+    skip_frames = 5,
32
+    global_max = true,
33
+    flush_graph_data = true,         -- clear data buffers when toggling
34
+    plot_bg_border_color = "0000FF",
35
+    plot_bg_color = "262626",
36
+    plot_color = "FFFFFF",
37
+
38
+    -- Text style
39
+    font = "Source Sans Pro",
40
+    font_mono = "Source Sans Pro",   -- monospaced digits are sufficient
41
+    font_size = 7,
42
+    font_color = "FFFFFF",
43
+    border_size = 0.8,
44
+    border_color = "262626",
45
+    shadow_x_offset = 0.0,
46
+    shadow_y_offset = 0.0,
47
+    shadow_color = "000000",
48
+    alpha = "11",
49
+
50
+    -- Custom header for ASS tags to style the text output.
51
+    -- Specifying this will ignore the text style values above and just
52
+    -- use this string instead.
53
+    custom_header = "",
54
+
55
+    -- Text formatting
56
+    -- With ASS
57
+    nl = "\\N",
58
+    indent = "\\h\\h\\h\\h\\h",
59
+    prefix_sep = "\\h\\h",
60
+    b1 = "{\\b1}",
61
+    b0 = "{\\b0}",
62
+    -- Without ASS
63
+    no_ass_nl = "\n",
64
+    no_ass_indent = "\t",
65
+    no_ass_prefix_sep = " ",
66
+    no_ass_b1 = "\027[1m",
67
+    no_ass_b0 = "\027[0m",
68
+}
69
+options.read_options(o)
70
+
71
+local format = string.format
72
+local max = math.max
73
+-- Function used to record performance data
74
+local recorder = nil
75
+-- Timer used for toggling
76
+local timer = nil
77
+-- Save these sequences locally as we'll need them a lot
78
+local ass_start = mp.get_property_osd("osd-ass-cc/0")
79
+local ass_stop = mp.get_property_osd("osd-ass-cc/1")
80
+
81
+-- Ring buffers for the values used to construct a graph.
82
+-- .pos denotes the current position, .len the buffer length
83
+-- .max is the max value in the corresponding buffer as computed in record_data().
84
+-- `plast_buf` is a table of buffers for the "last" value of performance data
85
+-- for render/present/upload.
86
+local plast_buf, vsratio_buf, vsjitter_buf
87
+local function init_buffers()
88
+    plast_buf = {{0, max = 0}, {0, max = 0}, {0, max = 0}, pos = 1, len = 50}
89
+    vsratio_buf = {0, pos = 1, len = 50, max = 0}
90
+    vsjitter_buf = {0, pos = 1, len = 50, max = 0}
91
+end
92
+
93
+
94
+local function set_ASS(b)
95
+    if not o.ass_formatting then
96
+        return ""
97
+    end
98
+    return b and ass_start or ass_stop
99
+end
100
+
101
+
102
+local function no_ASS(t)
103
+    return set_ASS(false) .. t .. set_ASS(true)
104
+end
105
+
106
+
107
+local function b(t)
108
+    return o.b1 .. t .. o.b0
109
+end
110
+
111
+
112
+local function text_style()
113
+    if not o.ass_formatting then
114
+        return ""
115
+    end
116
+    if o.custom_header and o.custom_header ~= "" then
117
+        return set_ASS(true) .. o.custom_header
118
+    else
119
+        return format("%s{\\fs%d}{\\fn%s}{\\bord%f}{\\3c&H%s&}{\\1c&H%s&}{\\alpha&H%s&}{\\xshad%f}{\\yshad%f}{\\4c&H%s&}",
120
+                        set_ASS(true), o.font_size, o.font, o.border_size,
121
+                        o.border_color, o.font_color, o.alpha, o.shadow_x_offset,
122
+                        o.shadow_y_offset, o.shadow_color)
123
+    end
124
+end
125
+
126
+
127
+local function has_vo_window()
128
+    return mp.get_property("vo-configured") == "yes"
129
+end
130
+
131
+
132
+local function has_video()
133
+    local r = mp.get_property("video")
134
+    return r and r ~= "no" and r ~= ""
135
+end
136
+
137
+
138
+local function has_audio()
139
+    local r = mp.get_property("audio")
140
+    return r and r ~= "no" and r ~= ""
141
+end
142
+
143
+
144
+local function has_ansi()
145
+    local is_windows = type(package) == 'table' and type(package.config) == 'string' and package.config:sub(1,1) == '\\'
146
+    if is_windows then
147
+        return os.getenv("ANSICON")
148
+    end
149
+    return true
150
+end
151
+
152
+
153
+-- Generate a graph from the given values.
154
+-- Returns an ASS formatted vector drawing as string.
155
+--
156
+-- values: Array/Table of numbers representing the data. Used like a ring buffer
157
+--         it will get iterated backwards `len` times starting at position `i`.
158
+-- i     : Index of the latest data value in `values`.
159
+-- len   : The length/amount of numbers in `values`.
160
+-- v_max : The maximum number in `values`. It is used to scale all data
161
+--         values to a range of 0 to `v_max`.
162
+-- scale : A value that will be multiplied with all data values.
163
+local function generate_graph(values, i, len, v_max, scale)
164
+    -- Check if at least one value exists
165
+    if not values[i] then
166
+        return ""
167
+    end
168
+
169
+    local x_tics = 1
170
+    local x_max = (len - 1) * x_tics
171
+    local y_offset = o.border_size
172
+    local y_max = o.font_size * 0.66
173
+    local x = 0
174
+
175
+    local s = {format("m 0 0 n %f %f l ", x, y_max - (y_max * values[i] / v_max * scale))}
176
+    i = ((i - 2) % len) + 1
177
+
178
+    for p = 1, len - 1 do
179
+        if values[i] then
180
+            x = x - x_tics
181
+            s[#s+1] = format("%f %f ", x, y_max - (y_max * values[i] / v_max * scale))
182
+        end
183
+        i = ((i - 2) % len) + 1
184
+    end
185
+
186
+    s[#s+1] = format("%f %f %f %f", x, y_max, 0, y_max)
187
+
188
+    local bg_box = format("{\\bord0.5}{\\3c&H%s&}{\\1c&H%s&}m 0 %f l %f %f %f 0 0 0",
189
+                          o.plot_bg_border_color, o.plot_bg_color, y_max, x_max, y_max, x_max)
190
+    return format("%s{\\r}{\\pbo%f}{\\shad0}{\\alpha&H00}{\\p1}%s{\\p0}{\\bord0}{\\1c&H%s}{\\p1}%s{\\p0}{\\r}%s",
191
+                  o.prefix_sep, y_offset, bg_box, o.plot_color, table.concat(s), text_style())
192
+end
193
+
194
+
195
+-- Format and append a property.
196
+-- A property whose value is either `nil` or empty (hereafter called "invalid")
197
+-- is skipped and not appended.
198
+-- Returns `false` in case nothing was appended, otherwise `true`.
199
+--
200
+-- s      : Table containing strings.
201
xt7-player-mpv-0.21.384.tar.gz/audio-input-microphone.png Added
xt7-player-mpv-0.20.384.tar.gz/shade_alpha.png -> xt7-player-mpv-0.21.384.tar.gz/shade_alpha.png Changed