static void
push_buffer (App * app, gpointer data, guint size)
{
- GstBuffer *buffer;
GstClockTime time;
- int ret;
gpointer local_data;
+ GstBuffer *buffer;
+ int ret;
- /* read the next chunk */
buffer = gst_buffer_new ();
time = app->tick * DEFAULT_TICK_PERIOD_MS * GST_MSECOND;
gst_memory_new_wrapped (0, local_data, size, 0, size, local_data,
g_free));
+ GST_MEMDUMP ("MIDI data:", local_data, size);
+
GST_DEBUG ("feed buffer %p, tick %" G_GUINT64_FORMAT " size: %u",
(gpointer) buffer, app->tick, size);
g_signal_emit_by_name (app->appsrc, "push-buffer", buffer, &ret);