Mercurial > mplayer.hg
changeset 9519:34b636d19268
10L never blowup an option pointer !!!!
That fix Gub's bug (sorry for the delay ;)
author | albeu |
---|---|
date | Mon, 03 Mar 2003 10:59:07 +0000 |
parents | 182d6c136095 |
children | 2860f7c9d9ca |
files | libmpdemux/tv.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/tv.c Sun Mar 02 21:21:56 2003 +0000 +++ b/libmpdemux/tv.c Mon Mar 03 10:59:07 2003 +0000 @@ -236,6 +236,7 @@ /* Handle channels names */ if (tv_param_channels) { + char** channels = tv_param_channels; mp_msg(MSGT_TV, MSGL_INFO, "TV Channels names detected.\n"); tv_channel_list = malloc(sizeof(tv_channels_t)); tv_channel_list->index=1; @@ -243,8 +244,8 @@ tv_channel_list->prev=NULL; tv_channel_current = tv_channel_list; - while (*tv_param_channels) { - char* tmp = *(tv_param_channels++); + while (*channels) { + char* tmp = *(channels++); char* sep = strchr(tmp,'-'); int i; struct CHANLIST cl;