[ANNOUNCE] xine-0.7.2 plugin via network without streamdev
Commit Message
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
@@ -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;
}