summaryrefslogtreecommitdiff
path: root/src/liblpcm/xine_decoder.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-17 18:17:48 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-17 18:17:48 +0000
commit4ba751b96f31b7cba5dd51d3f47fad6d565222f1 (patch)
tree76604d3062071397bfcdf74663d273900722b513 /src/liblpcm/xine_decoder.c
parent4b353b8743f17453f405c3275cd34b8508d71099 (diff)
downloadxine-lib-4ba751b96f31b7cba5dd51d3f47fad6d565222f1.tar.gz
xine-lib-4ba751b96f31b7cba5dd51d3f47fad6d565222f1.tar.bz2
stop sending audio parameters all the time
CVS patchset: 2304 CVS date: 2002/07/17 18:17:48
Diffstat (limited to 'src/liblpcm/xine_decoder.c')
-rw-r--r--src/liblpcm/xine_decoder.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/liblpcm/xine_decoder.c b/src/liblpcm/xine_decoder.c
index f41c8ebc6..a8328906b 100644
--- a/src/liblpcm/xine_decoder.c
+++ b/src/liblpcm/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.28 2002/07/05 17:32:03 mroi Exp $
+ * $Id: xine_decoder.c,v 1.29 2002/07/17 18:17:49 miguelfreitas Exp $
*
* 31-8-2001 Added LPCM rate sensing.
* (c) 2001 James Courtier-Dutton James@superbug.demon.co.uk
@@ -89,17 +89,11 @@ void lpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
/* Drop preview data */
if (buf->decoder_flags & BUF_FLAG_PREVIEW)
return;
- if (buf->decoder_info[1]==0 || buf->decoder_info[2]==0 || buf->decoder_info[3]==0) {
- printf ("liblpcm: decoder_info bad. zeros\n");
- return;
- }
+
/*
* (re-)open output device
*/
- if (!this->output_open
- || (this->rate != buf->decoder_info[1])
- || (this->bits_per_sample != buf->decoder_info[2])
- || (this->number_of_channels != buf->decoder_info[3]) ) {
+ if ( buf->decoder_flags & BUF_FLAG_HEADER ) {
if (this->output_open)
this->audio_out->close (this->audio_out);