diff options
Diffstat (limited to 'gst/modplug/gstmodplug.cc')
-rw-r--r-- | gst/modplug/gstmodplug.cc | 14 |
1 files changed, 8 insertions, 6 deletions
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 ) |