gtk_object_getv(GTK_OBJECT(object),1,&arg);
return GTK_WIDGET(GTK_VALUE_OBJECT(arg));
}
+
+void gst_util_dump_mem(guchar *mem, guint size) {
+ guint i, j;
+
+ i = j =0;
+ while (i<size) {
+ g_print("%02x ", mem[i]);
+ if (j == 16) {
+ g_print("\n");
+ j = 0;
+ }
+ else {
+ j++;
+ }
+ i++;
+ }
+ g_print("\n");
+}
gpointer gst_util_get_pointer_arg(GtkObject *object,guchar *argname);
GtkWidget *gst_util_get_widget_arg(GtkObject *object,guchar *argname);
+void gst_util_dump_mem(guchar *mem, guint size);
#endif /* __GST_UTILS_H__ */
}
}
+ if (riff->nextlikely & 0x01) riff->nextlikely++;
DEBUG("gst_riff_parser: next 0x%08x last 0x%08lx offset %08x\n",riff->nextlikely, last, off);
/* loop while the next likely chunk header is in this buffer */
chunk->size = words[1];
chunk->data = (gchar *)(words+2);
// we need word alignment
- if (chunk->size & 0x01) chunk->size++;
+ //if (chunk->size & 0x01) chunk->size++;
chunk->form = words[2]; /* fill in the form, might not be valid */
}
g_free(chunk);
}
+ if (riff->nextlikely & 0x01) riff->nextlikely++;
//riff->chunks = g_list_prepend(riff->chunks,chunk);
}