Mercurial > audlegacy-plugins
comparison src/madplug/input.c @ 1985:a260bd1beef0
use set_params() in madplug
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 07 Oct 2007 14:26:26 -0500 |
| parents | fa9f85cebade |
| children | 2ffc6a69fcd1 |
comparison
equal
deleted
inserted
replaced
| 1984:489e32a8e106 | 1985:a260bd1beef0 |
|---|---|
| 495 | 495 |
| 496 /* call set_info only if tmp is different from prev_tmp */ | 496 /* call set_info only if tmp is different from prev_tmp */ |
| 497 if ( ( ( info->prev_title != NULL ) && ( strcmp(info->prev_title,tmp) ) ) || | 497 if ( ( ( info->prev_title != NULL ) && ( strcmp(info->prev_title,tmp) ) ) || |
| 498 ( info->prev_title == NULL ) ) | 498 ( info->prev_title == NULL ) ) |
| 499 { | 499 { |
| 500 mad_plugin->set_info(tmp, | 500 info->playback->set_params(info->playback, tmp, |
| 501 -1, // indicate the stream is unseekable | 501 -1, // indicate the stream is unseekable |
| 502 info->bitrate, info->freq, info->channels); | 502 info->bitrate, info->freq, info->channels); |
| 503 if (info->prev_title) | 503 if (info->prev_title) |
| 504 g_free(info->prev_title); | 504 g_free(info->prev_title); |
| 505 info->prev_title = g_strdup(tmp); | 505 info->prev_title = g_strdup(tmp); |
