modplug should work (no seek events for now)
authorJeremy Simon <jsimon13@yahoo.fr>
Tue, 4 Jun 2002 21:54:13 +0000 (21:54 +0000)
committerJeremy Simon <jsimon13@yahoo.fr>
Tue, 4 Jun 2002 21:54:13 +0000 (21:54 +0000)
Original commit message from CVS:
modplug should work (no seek events for now)

gst/modplug/gstmodplug.cc

index fe0b31f..cc7bf5b 100644 (file)
@@ -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 )