~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to share/lua/http/custom.lua

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
local _G = _G
 
2
module("custom",package.seeall)
 
3
 
 
4
local dialogs_cache = {}
 
5
 
 
6
function dialog_preload(name)
 
7
    if not dialogs_cache[name] then
 
8
        -- Cache the dialogs
 
9
        dialogs_cache[name] = process(http_dir.."/dialogs/"..name)
 
10
    end
 
11
end
 
12
 
 
13
function dialog(name)
 
14
    dialog_preload(name)
 
15
    dialogs_cache[name]()
 
16
end
 
17
 
 
18
function dialogs(...)
 
19
    for i=1,select("#",...) do
 
20
        dialog(select(i,...))
 
21
    end
 
22
end
 
23
 
 
24
_G.dialogs = dialogs
 
25
_G.vlm = vlc.vlm()