]> git.sesse.net Git - vlc/commitdiff
imem: don't pass data pointer through MRL either
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 30 Mar 2010 11:39:11 +0000 (14:39 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 30 Mar 2010 11:39:11 +0000 (14:39 +0300)
modules/access/imem.c

index f92c87ea933f4d1eb7e2b675aee9a7e78c62dddb..4ba41b39a44ff4739828bf371c64be9ed1d50a55 100644 (file)
@@ -227,16 +227,16 @@ static int Open(vlc_object_t *object)
         return VLC_EGENERIC;
     }
 
-    /* Now we can parse the MRL (get/release must not be parsed to avoid
-     * security risks) */
-    if (*demux->psz_path)
-        ParseMRL(demux);
-
     tmp = var_CreateGetString(demux, "imem-data");
     if (tmp)
         sys->source.data = (void*)(intptr_t)strtoll(tmp, NULL, 0);
     free(tmp);
 
+    /* Now we can parse the MRL (get/release must not be parsed to avoid
+     * security risks) */
+    if (*demux->psz_path)
+        ParseMRL(demux);
+
     msg_Dbg(demux, "Using get(%p) release(%p) and data(%p)",
             sys->source.get, sys->source.release, sys->source.data);