alsamidisrc: Don't set buffer offset and duration

They are not relly needed for a live source.

https://bugzilla.gnome.org/show_bug.cgi?id=787683
This commit is contained in:
Antonio Ospite 2017-10-04 19:46:55 +02:00 committed by Nicolas Dufresne
parent 3c5aa0a786
commit b5060f16d9

View file

@ -322,8 +322,6 @@ prepare_buffer (GstAlsaMidiSrc * alsamidisrc, gpointer data, guint size)
GST_BUFFER_DTS (buffer) = time; GST_BUFFER_DTS (buffer) = time;
GST_BUFFER_PTS (buffer) = time; GST_BUFFER_PTS (buffer) = time;
GST_BUFFER_OFFSET (buffer) = time;
GST_BUFFER_DURATION (buffer) = MIDI_TICK_PERIOD_MS * GST_MSECOND;
local_data = g_memdup (data, size); local_data = g_memdup (data, size);