summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Simon <jsimon13@yahoo.fr>2002-06-04 21:54:13 +0000
committerJeremy Simon <jsimon13@yahoo.fr>2002-06-04 21:54:13 +0000
commit380b28dd97a0d2a5b49ec461d4e0360ebafd06e5 (patch)
tree1b367908afc2ff41b112f59bc7ddb7f113ae8d05
parentac15df6f537da6d9beaf9aeda7e2fc7dab63a2d6 (diff)
downloadgst-plugins-bad-380b28dd97a0d2a5b49ec461d4e0360ebafd06e5.tar.gz
gst-plugins-bad-380b28dd97a0d2a5b49ec461d4e0360ebafd06e5.tar.bz2
gst-plugins-bad-380b28dd97a0d2a5b49ec461d4e0360ebafd06e5.zip
modplug should work (no seek events for now)
Original commit message from CVS: modplug should work (no seek events for now)
-rw-r--r--gst/modplug/gstmodplug.cc14
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 )