Mercurial > mplayer.hg
annotate debian/config @ 28992:947ef23ba798
Test if create_vdp_decoder() might succeed by calling it from config()
with a small value for max_reference_frames.
This does not make automatic recovery by using software decoder possible,
but lets MPlayer fail more graciously on - actually existing - buggy
hardware that does not support certain H264 widths when using
hardware accelerated decoding (784, 864, 944, 1024, 1808, 1888 pixels on
NVIDIA G98) and if the user tries to hardware-decode more samples at
the same time than supported.
Might break playback of H264 Intra-Only samples on hardware with very
little video memory.
author | cehoyos |
---|---|
date | Sat, 21 Mar 2009 20:11:05 +0000 |
parents | a5bef61f49bf |
children |
rev | line source |
---|---|
17346
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
1 #!/bin/sh |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
2 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
3 CONFIGFILE=/etc/mplayer/mplayer.conf |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
4 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
5 set -e |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
6 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
7 # Source debconf library. |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
8 . /usr/share/debconf/confmodule |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
9 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
10 if test -r $CONFIGFILE && ! grep -q '### mplayer DEBCONF AREA' $CONFIGFILE |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
11 then |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
12 db_input medium 'mplayer/replace-existing-files' || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
13 db_go || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
14 if [ "$RET" != "true" ]; then |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
15 exit 0 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
16 fi |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
17 db_get 'mplayer/replace-existing-files' || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
18 fi |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
19 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
20 ########################################## find fonts |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
21 #default font (if available) |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
22 BESTFONT=/usr/share/fonts/truetype/Arial.ttf |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
23 [ -r $BESTFONT ] || BESTFONT=/usr/share/fonts/truetype/freefont/FreeSans.ttf |
1398 | 24 |
17346
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
25 t=$(tempfile -p fonts ) |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
26 find /usr/share/fonts/ /?/?in*/?ont* -type f -iname '*.ttf' -maxdepth 3 2> /dev/null > $t || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
27 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
28 if test -s $t |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
29 then |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
30 fonts=$( awk '{print a $0;a=", "}' $t || true ) |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
31 db_subst "mplayer/ttfont" ttfontchoices $fonts || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
32 ## suppose the question is skipped: give a default |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
33 a=$BESTFONT |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
34 [ -r $BESTFONT ] || a=$(head -1 $t) |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
35 db_subst "mplayer/ttfont" ttfontdefault $a || true |
1398 | 36 |
17346
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
37 db_input medium mplayer/ttfont || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
38 if [ "$?" = 30 ] ; then |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
39 db_set mplayer/ttfont $a || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
40 fi |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
41 else |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
42 db_input medium "mplayer/no-ttfont" || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
43 fi |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
44 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
45 rm $t |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
46 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
47 db_go || true |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
48 |
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
49 ############################################################ |
4521
0737156ad1f0
Juergen Kreileder changes, fixing some lintian errors, adding correct manpath and adding
eyck
parents:
1398
diff
changeset
|
50 |
1398 | 51 |
17346
a5bef61f49bf
Improve the Debian package configuration: Remove the vo module configuration,
diego
parents:
7096
diff
changeset
|
52 exit 0 |