From 380b28dd97a0d2a5b49ec461d4e0360ebafd06e5 Mon Sep 17 00:00:00 2001 From: Jeremy Simon Date: Tue, 4 Jun 2002 21:54:13 +0000 Subject: modplug should work (no seek events for now) Original commit message from CVS: modplug should work (no seek events for now) --- gst/modplug/gstmodplug.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gst/modplug') diff --git a/gst/modplug/gstmodplug.cc b/gst/modplug/gstmodplug.cc index fe0b31f8..cc7bf5be 100644 --- a/gst/modplug/gstmodplug.cc +++ b/gst/modplug/gstmodplug.cc @@ -306,13 +306,15 @@ gst_modplug_loop (GstElement *element) if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) break; } - - if ( modplug->Buffer ) { - modplug->Buffer = gst_buffer_append( modplug->Buffer, buffer_in ); - gst_buffer_unref( buffer_in ); - } else - modplug->Buffer = buffer_in; + { + if ( modplug->Buffer ) { + modplug->Buffer = gst_buffer_append( modplug->Buffer, buffer_in ); + gst_buffer_unref( buffer_in ); + } + else + modplug->Buffer = buffer_in; + } } if ( modplug->_16bit ) -- cgit v1.2.1