summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-30 16:06:06 +0200
committerwm4 <wm4@nowhere>2013-07-30 16:15:36 +0200
commit06996810bfdb397aad766d66aa655c4625a7a253 (patch)
treee729e271366cbc0e03427c4ebf643adfaec6c118
parent29b0be400c48ec28d9f70b762995b713e77b1864 (diff)
downloadmpv-06996810bfdb397aad766d66aa655c4625a7a253.tar.bz2
mpv-06996810bfdb397aad766d66aa655c4625a7a253.tar.xz
stream_dvd: fix .ifo redirection
This was blatantly broken after stream->url was changed to talloc.
-rw-r--r--stream/stream_dvd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 565054d81b..b27e71e3ab 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -1085,8 +1085,7 @@ static int ifo_stream_open (stream_t *stream, int mode, void *opts)
spriv->title=1;
free(filename);
- free(stream->url);
- stream->url=strdup("dvd://");
+ stream->url=talloc_strdup(stream, "dvd://");
return open_s(stream, mode, spriv);
}