[vlc-devel] [PATCH 2/4] directory: add support for ACCESS_GET_CONTENT_TYPE
Edward Wang
edward.c.wang at compdigitec.com
Fri Oct 18 05:04:46 CEST 2013
Remove the psz_demux hack.
Ref #8449
---
modules/access/directory.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/modules/access/directory.c b/modules/access/directory.c
index 0159042..c18bc5b 100644
--- a/modules/access/directory.c
+++ b/modules/access/directory.c
@@ -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;
}
--
1.8.4.rc3
More information about the vlc-devel
mailing list