Mercurial > mplayer.hg
view playtreeparser.h @ 11350:007ec48cf146
Current mplayer (mine is mplayer-1.0-pre1cvs20031001) cannot play mms
stream with multibyte characters in the url.
There is a bug in string_utf16() of libmpdemux/asf_mmst_streaming.c:
the url encoding code is written for single-byte character only. It
just fill a zero byte between every two adjacent bytes of the url
string. This is wrong when the url string contains multi-byte
characters.
My patch is in the attachment, and has been tested working. It uses
iconv() to convert the url's encoding to utf-16 correctly. So can this
patch be accepted and commit into CVS?
patch by Wang WenRui <wangwr@mail.ustc.edu.cn>
author | attila |
---|---|
date | Sat, 01 Nov 2003 14:43:28 +0000 |
parents | 4bc481804519 |
children | 1a14fde7680d |
line wrap: on
line source
#ifndef __PLAYTREEPARSER_H #define __PLAYTREEPARSER_H struct stream_st; typedef struct play_tree_parser { struct stream_st* stream; char *buffer,*iter,*line; int buffer_size , buffer_end; int deep,keep; } play_tree_parser_t; play_tree_parser_t* play_tree_parser_new(struct stream_st* stream,int deep); void play_tree_parser_free(play_tree_parser_t* p); play_tree_t* play_tree_parser_get_play_tree(play_tree_parser_t* p, int forced); void play_tree_add_bpf(play_tree_t* pt, char* filename); #endif