[ANNOUNCE] xine-0.7.2 plugin via network without streamdev

Message ID 424812E8.5040307@ventoso.org
State New
Headers

Commit Message

Luca Olivetti March 28, 2005, 2:21 p.m. UTC
  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
  

Patch

--- 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;
   }