summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-11 20:57:03 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-11 20:57:03 +0000
commit72bc1537cb871655a278919a1fbab689f42dd254 (patch)
tree5af05c8c25c9601914da4d7457f7e5eb88360eb0 /libmpdemux
parentdf2e49d51cab067efabe963b965c83571494bc18 (diff)
downloadmpv-72bc1537cb871655a278919a1fbab689f42dd254.tar.bz2
mpv-72bc1537cb871655a278919a1fbab689f42dd254.tar.xz
Fix playback of file after playing an url
Patch by Aurelien Jacobs <aurel (at) gnuage (dot) org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12572 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/open.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/open.c b/libmpdemux/open.c
index e4344be4e4..fd5803d365 100644
--- a/libmpdemux/open.c
+++ b/libmpdemux/open.c
@@ -517,6 +517,7 @@ if(strncmp("dvd://",filename,6) == 0){
// if (len == -1)
// return new_stream(f,STREAMTYPE_STREAM); // open as stream
url_free(url);
+ url = NULL;
stream=new_stream(f,STREAMTYPE_SMB);
stream->end_pos=len;
return stream;
@@ -530,10 +531,12 @@ if(strncmp("dvd://",filename,6) == 0){
if( streaming_start( stream, file_format, url )<0){
mp_msg(MSGT_OPEN,MSGL_ERR,MSGTR_UnableOpenURL, filename);
url_free(url);
+ url = NULL;
return NULL;
} else {
mp_msg(MSGT_OPEN,MSGL_INFO,MSGTR_ConnToServer, url->hostname );
url_free(url);
+ url = NULL;
return stream;
}
}