summaryrefslogtreecommitdiffstats
path: root/ext/smoothwave/gstsmoothwave.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-07-17 04:16:42 +0000
committerDavid Schleef <ds@schleef.org>2003-07-17 04:16:42 +0000
commit81f42a53acf8bd084bae3da25fa7b1f4a658a2ff (patch)
treeef354837df9158640088394e563b797b641c6052 /ext/smoothwave/gstsmoothwave.c
parent2ff63e563b21cac87489a0d989c3aa957d5f2fb9 (diff)
downloadgst-plugins-bad-81f42a53acf8bd084bae3da25fa7b1f4a658a2ff.tar.gz
gst-plugins-bad-81f42a53acf8bd084bae3da25fa7b1f4a658a2ff.tar.bz2
gst-plugins-bad-81f42a53acf8bd084bae3da25fa7b1f4a658a2ff.zip
Fixes to make it compile without GNOME, and with a modern (>= 0.3) version of GStreamer. Now that I got it compiled,...
Original commit message from CVS: Fixes to make it compile without GNOME, and with a modern (>= 0.3) version of GStreamer. Now that I got it compiled, I want to delete it.
Diffstat (limited to 'ext/smoothwave/gstsmoothwave.c')
-rw-r--r--ext/smoothwave/gstsmoothwave.c26
1 files changed, 15 insertions, 11 deletions
diff --git a/ext/smoothwave/gstsmoothwave.c b/ext/smoothwave/gstsmoothwave.c
index e6a55fcd..6b96dd9e 100644
--- a/ext/smoothwave/gstsmoothwave.c
+++ b/ext/smoothwave/gstsmoothwave.c
@@ -162,14 +162,16 @@ gst_smoothwave_chain (GstPad *pad, GstBuffer *buf)
smoothwave = GST_SMOOTHWAVE(GST_OBJECT_PARENT (pad));
/* first deal with audio metadata */
-/* if (buf->meta) { */
-/* if (smoothwave->meta != NULL) { */
-/* /* FIXME: need to unref the old metadata so it goes away */ */
-/* } */
-/* /* we just make a copy of the pointer */ */
-/* smoothwave->meta = (MetaAudioRaw *)(buf->meta); */
-/* /* FIXME: now we have to ref the metadata so it doesn't go away */ */
-/* } */
+#if 0
+ if (buf->meta) {
+ if (smoothwave->meta != NULL) {
+ /* FIXME: need to unref the old metadata so it goes away */
+ }
+ /* we just make a copy of the pointer */
+ smoothwave->meta = (MetaAudioRaw *)(buf->meta);
+ /* FIXME: now we have to ref the metadata so it doesn't go away */
+ }
+#endif
/* g_return_if_fail(smoothwave->meta != NULL); */
@@ -192,10 +194,12 @@ gst_smoothwave_chain (GstPad *pad, GstBuffer *buf)
ptr = (guint32 *)smoothwave->imagebuffer;
for (i=0;i<(smoothwave->width*smoothwave->height)/4;i++) {
- if (*ptr)
- *(ptr++) -= ((*ptr & 0xf0f0f0f0ul) >> 4) + ((*ptr & 0xe0e0e0e0ul) >> 5);
- else
+ if (*ptr){
+ *ptr -= ((*ptr & 0xf0f0f0f0ul) >> 4) + ((*ptr & 0xe0e0e0e0ul) >> 5);
ptr++;
+ }else{
+ ptr++;
+ }
}
/* GST_DEBUG ("drawing"); */