this is what triggered olive's bug.
authorThomas Vander Stichele <thomas@apestaart.org>
Thu, 12 Sep 2002 16:13:08 +0000 (16:13 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Thu, 12 Sep 2002 16:13:08 +0000 (16:13 +0000)
Original commit message from CVS:
this is what triggered olive's bug.
guess this needs an event update ?

gst/volume/gstvolume.c

index d89dd95..dc3f0a2 100644 (file)
@@ -308,7 +308,8 @@ volume_chain_int16 (GstPad *pad, GstBuffer *buf)
 
   out_buf = gst_buffer_copy_on_write (buf);
 
-  data = (gint16 *)GST_BUFFER_DATA(out_buf);
+  data = (gint16 *) GST_BUFFER_DATA (out_buf);
+  g_assert (data);
   num_samples = GST_BUFFER_SIZE(out_buf)/sizeof(gint16);
   GST_DPMAN_PREPROCESS(filter->dpman, num_samples, GST_BUFFER_TIMESTAMP(out_buf));
   i = 0;