summaryrefslogtreecommitdiff
path: root/src/libmpg123
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-06-09 17:07:21 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-06-09 17:07:21 +0000
commita6286f5fc779af20613910ddf8032c25d74247ac (patch)
tree6e0a7066d4869d8f9c6e3a4f297efb7fbbf18ae5 /src/libmpg123
parente0b25d1271e1816b2b41b9af9514c3fa6bf674cf (diff)
downloadxine-lib-a6286f5fc779af20613910ddf8032c25d74247ac.tar.gz
xine-lib-a6286f5fc779af20613910ddf8032c25d74247ac.tar.bz2
more avi demuxer/libw32 bugfixes
CVS patchset: 136 CVS date: 2001/06/09 17:07:21
Diffstat (limited to 'src/libmpg123')
-rw-r--r--src/libmpg123/xine_decoder.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libmpg123/xine_decoder.c b/src/libmpg123/xine_decoder.c
index 8508dcd24..339b2a0d6 100644
--- a/src/libmpg123/xine_decoder.c
+++ b/src/libmpg123/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.1 2001/05/27 23:48:12 guenter Exp $
+ * $Id: xine_decoder.c,v 1.2 2001/06/09 17:07:21 guenter Exp $
*
* stuff needed to turn libmpg123 into a xine decoder plugin
*/
@@ -67,8 +67,10 @@ void mpgdec_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
mpgdec_decoder_t *this = (mpgdec_decoder_t *) this_gen;
- mpg_audio_decode_data (this->mpg, buf->content, buf->content + buf->size,
- buf->PTS);
+ if (buf->decoder_info[0] >0) {
+ mpg_audio_decode_data (this->mpg, buf->content, buf->content + buf->size,
+ buf->PTS);
+ }
}
void mpgdec_close (audio_decoder_t *this_gen) {