From patchwork Mon Mar 28 14:21:28 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Olivetti X-Patchwork-Id: 11832 Received: from 232.red-213-97-27.pooles.rima-tde.net ([213.97.27.232]) by www.linuxtv.org with esmtp (Exim 4.34) id 1DFv7x-0002zX-P4 for vdr@linuxtv.org; Mon, 28 Mar 2005 16:22:02 +0200 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by 232.Red-213-97-27.pooles.rima-tde.net (Postfix) with ESMTP id 2FD5618AA7A1 for ; Mon, 28 Mar 2005 16:21:37 +0200 (CEST) Message-ID: <424812E8.5040307@ventoso.org> Date: Mon, 28 Mar 2005 16:21:28 +0200 From: Luca Olivetti User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Klaus Schmidinger's VDR Subject: Re: [vdr] [ANNOUNCE] xine-0.7.2 plugin via network without streamdev References: <1110533529010579@lycos-europe.com> <42347DEA.5030209@sofnet.com> <42347F99.3040008@gmail.com> In-Reply-To: <42347F99.3040008@gmail.com> X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 14:22:02 -0000 Status: O X-Status: X-Keywords: X-UID: 1172 Anssi Hannula wrote: > If you supplied the VDR_SERVER_ADDRESS in the client xine-lib sources, > you can use xine as you did before. E.g. connect by using VDR button. Attached is a quick hack to get the server address from the command line, e.g. xine --no-splash --post vdr vdr://localhost#demux:mpeg_pes xine --no-splash --post vdr vdr://192.168.1.1#demux:mpeg_pes Bye --- input_vdr.c.orig 2005-03-28 16:04:33.092745448 +0200 +++ input_vdr.c 2005-03-28 16:05:08.979289864 +0200 @@ -55,7 +55,6 @@ #define VDR_MAX_NUM_WINDOWS 16 #define VDR_ABS_FIFO_DIR "/tmp/vdr-xine" -#define VDR_SERVER_ADDRESS "192.168.1.1" @@ -1275,13 +1274,13 @@ static int vdr_plugin_open_sockets(vdr_input_plugin_t *this) { - struct hostent *host = gethostbyname(VDR_SERVER_ADDRESS); + struct hostent *host = gethostbyname(&this->mrl[6]); xprintf(this->stream->xine, XINE_VERBOSITY_LOG,"vdr: connecting to vdr.\n"); if (host == NULL) { xprintf(this->stream->xine, XINE_VERBOSITY_LOG, _("vdr: failed to resolve hostname '%s' (%s)\n"), - VDR_SERVER_ADDRESS, + &this->mrl[6], strerror(errno)); return 0; }