gmyth-stream/main.py
branchtrunk
changeset 468 f4c6061f6f39
parent 453 a806d8ad0ff0
child 470 57833200a415
     1.1 --- a/gmyth-stream/main.py	Tue Mar 27 00:13:27 2007 +0100
     1.2 +++ b/gmyth-stream/main.py	Wed Mar 28 21:26:42 2007 +0100
     1.3 @@ -1,30 +1,3 @@
     1.4 - '''
     1.5 - # GMyth-Stream
     1.6 - #
     1.7 - # @file main.py
     1.8 - #
     1.9 - # @brief <p> Plugin for GMyth-Stream
    1.10 - #
    1.11 - # Copyright (C) 2007 INdT - Instituto Nokia de Tecnologia.
    1.12 - # @author Artur Duque de Souza <artur.souza@indt.org.br>
    1.13 - #
    1.14 - #
    1.15 - # This program is free software; you can redistribute it and/or modify
    1.16 - # it under the terms of the GNU Lesser General Public License as published by
    1.17 - # the Free Software Foundation; either version 2 of the License, or
    1.18 - # (at your option) any later version.
    1.19 - #
    1.20 - # This program is distributed in the hope that it will be useful,
    1.21 - # but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.22 - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.23 - # GNU General Public License for more details.
    1.24 - #
    1.25 - # You should have received a copy of the GNU Lesser General Public License
    1.26 - # along with this program; if not, write to the Free Software
    1.27 - # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.28 - #
    1.29 - '''
    1.30 -
    1.31  #!/usr/bin/python
    1.32  
    1.33  import sys
    1.34 @@ -62,7 +35,9 @@
    1.35          elif (msg == "SETUP"):
    1.36              setup = server.getMsg(1024).strip().split(" ")
    1.37              media.setup(setup[0], setup[1], setup[2], \
    1.38 -                        setup[3], setup[4], setup[5])
    1.39 +                        setup[3], setup[4], setup[5],
    1.40 +                        setup[6], setup[7], setup[8],
    1.41 +                        setup[9])
    1.42  
    1.43          elif (msg == "PLAY"):
    1.44              media.play()
    1.45 @@ -81,5 +56,5 @@
    1.46      server.disconnect_client(con)
    1.47  
    1.48  server.stop()
    1.49 -
    1.50 +del(server)
    1.51  print "--> Server stopped..."