summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-11-17 22:37:27 +0000
committerphintuka <phintuka>2008-11-17 22:37:27 +0000
commitb6df231bf8b4eec680f909eb00b5dc8c2587a4bd (patch)
tree917d6b6266ffa6894c0d51f3ea3a009d258ce3a0
parentd16f7029995dfd1a17176e5a478e21ce680c4f55 (diff)
downloadxineliboutput-b6df231bf8b4eec680f909eb00b5dc8c2587a4bd.tar.gz
xineliboutput-b6df231bf8b4eec680f909eb00b5dc8c2587a4bd.tar.bz2
Fixed MRL backwards compability mode.
Moved one free() to correct place.
-rw-r--r--xine_frontend_main.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/xine_frontend_main.c b/xine_frontend_main.c
index 32e32b66..acc24db0 100644
--- a/xine_frontend_main.c
+++ b/xine_frontend_main.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: xine_frontend_main.c,v 1.64 2008-11-17 22:34:24 phintuka Exp $
+ * $Id: xine_frontend_main.c,v 1.65 2008-11-17 22:37:27 phintuka Exp $
*
*/
@@ -583,7 +583,7 @@ int main(int argc, char *argv[])
!strncmp(mrl, MRL_ID ":udp:", MRL_ID_LEN+5) ||
!strncmp(mrl, MRL_ID ":rtp:", MRL_ID_LEN+5) ||
!strncmp(mrl, MRL_ID ":pipe:", MRL_ID_LEN+6)))
- mrl[5] = '+';
+ mrl[4] = '+';
#endif
/* If server address not given, try to find server automatically */
@@ -601,10 +601,9 @@ int main(int argc, char *argv[])
if (mrl) {
char *tmp = mrl;
mrl = NULL;
- if (asprintf(&mrl, "%s//%s:%d", tmp, address, port) < 0) {
- free(tmp);
+ if (asprintf(&mrl, "%s//%s:%d", tmp, address, port) < 0)
return -1;
- }
+ free(tmp);
} else
if (asprintf(&mrl, MRL_ID "://%s:%d", address, port) < 0)
return -1;