+/**
+ * Get the Content-Type of a stream, or NULL if unknown.
+ * Result must be free()'d.
+ */
+static inline char *stream_ContentType( stream_t *s )
+{
+ char *res;
+ if( stream_Control( s, STREAM_GET_CONTENT_TYPE, &res ) )
+ return NULL;
+ return res;
+}
+