Mercurial > audlegacy-plugins
changeset 1985:a260bd1beef0
use set_params() in madplug
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 07 Oct 2007 14:26:26 -0500 |
parents | 489e32a8e106 |
children | 4b78df9dcf93 |
files | src/madplug/decoder.c src/madplug/input.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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); }
--- 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)