Commit 39faaf58 authored by Edward Wang's avatar Edward Wang Committed by Rémi Denis-Courmont

directory: add support for ACCESS_GET_CONTENT_TYPE

Remove the psz_demux hack.

Ref #8449
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent d22f29ab
......@@ -198,10 +198,7 @@ int DirInit (access_t *p_access, DIR *handle)
p_access->pf_read = NULL;
p_access->pf_block = DirBlock;
p_access->pf_seek = NULL;
p_access->pf_control= DirControl;
free (p_access->psz_demux);
p_access->psz_demux = strdup ("xspf-open");
p_access->pf_control = DirControl;
return VLC_SUCCESS;
error:
......@@ -483,6 +480,10 @@ int DirControl( access_t *p_access, int i_query, va_list args )
*va_arg( args, int64_t * ) = DEFAULT_PTS_DELAY * 1000;
break;
case ACCESS_GET_CONTENT_TYPE:
*va_arg( args, char** ) = strdup("application/xspf+xml");
return VLC_SUCCESS;
default:
return VLC_EGENERIC;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment