# HG changeset patch # User William Pitcock # Date 1191785186 18000 # Node ID a260bd1beef0b864aa62e95eb66386d5442e5273 # Parent 489e32a8e1066fc5981776c58868101e0722483f use set_params() in madplug diff -r 489e32a8e106 -r a260bd1beef0 src/madplug/decoder.c --- a/src/madplug/decoder.c Sun Oct 07 14:19:19 2007 -0500 +++ b/src/madplug/decoder.c Sun Oct 07 14:26:26 2007 -0500 @@ -486,7 +486,7 @@ audmad_config.id3_format : get_gentitle_format()); tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), - mad_plugin->set_info(info->title, + info->playback->set_params(info->playback, info->title, (tlen == 0 || info->size <= 0) ? -1 : tlen, info->bitrate, info->freq, info->channels); #ifdef DEBUG @@ -613,7 +613,7 @@ g_message("decode vbr tlen = %d", tlen); #endif #endif - mad_plugin->set_info(info->title, + info->playback->set_params(info->playback, info->title, (tlen == 0 || info->size <= 0) ? -1 : tlen, info->bitrate, info->freq, info->channels); } diff -r 489e32a8e106 -r a260bd1beef0 src/madplug/input.c --- a/src/madplug/input.c Sun Oct 07 14:19:19 2007 -0500 +++ b/src/madplug/input.c Sun Oct 07 14:26:26 2007 -0500 @@ -497,7 +497,7 @@ if ( ( ( info->prev_title != NULL ) && ( strcmp(info->prev_title,tmp) ) ) || ( info->prev_title == NULL ) ) { - mad_plugin->set_info(tmp, + info->playback->set_params(info->playback, tmp, -1, // indicate the stream is unseekable info->bitrate, info->freq, info->channels); if (info->prev_title)