network.c
branchtrunk
changeset 22 93aaf15c145a
parent 0 474a1293c3c0
child 29 640ce9201139
     1.1 --- a/network.c	Tue Feb 03 12:28:53 2009 +0800
     1.2 +++ b/network.c	Tue Feb 03 20:33:04 2009 +0800
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * MP3/MPlayer plugin to VDR (C++)
     1.6   *
     1.7 - * (C) 2001-2006 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.8 + * (C) 2001-2009 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or
    1.11   * modify it under the terms of the GNU General Public License
    1.12 @@ -47,10 +47,6 @@
    1.13  
    1.14  const char *netscript=0;
    1.15  
    1.16 -#if APIVERSNUM == 10131
    1.17 -#error Using this plugin with vdr 1.1.31 is not recommended (may cause high cpu load during streaming)
    1.18 -#endif
    1.19 -
    1.20  // -----------------------------------------------------------------------------
    1.21  
    1.22  int RunCommand(const char *cmd, const char *State, const char *Name=0)
    1.23 @@ -59,11 +55,7 @@
    1.24    if(cmd) {
    1.25      char *tmp=0;
    1.26      if(Name)
    1.27 -#if APIVERSNUM < 10318
    1.28 -      asprintf(&tmp,"%s %s \"%s\"",cmd,State,strescape(Name,"\"$"));
    1.29 -#else
    1.30        asprintf(&tmp,"%s %s \"%s\"",cmd,State,*strescape(Name,"\"$"));
    1.31 -#endif
    1.32      else asprintf(&tmp,"%s %s",cmd,State);
    1.33  
    1.34      d(printf("run: executing '%s'\n",tmp))
    1.35 @@ -206,9 +198,7 @@
    1.36    connected=netup=false;
    1.37    rwTimeout =RwTimeoutMs  ? RwTimeoutMs :RW_TIMEOUT;
    1.38    conTimeout=ConTimeoutMs ? ConTimeoutMs:CON_TIMEOUT;
    1.39 -#if APIVERSNUM >= 10132
    1.40    SetTimeouts(50,50);
    1.41 -#endif
    1.42  }
    1.43  
    1.44  cNet::~cNet()