alsasink: Update internal buffer/period times with the values that were configured on the device

This commit is contained in:
Sebastian Dröge 2013-05-29 16:39:17 +02:00
parent f763a2364f
commit 639e2d4346

View file

@ -491,6 +491,7 @@ retry:
goto retry; goto retry;
} }
GST_DEBUG_OBJECT (alsa, "buffer time %u", buffer_time); GST_DEBUG_OBJECT (alsa, "buffer time %u", buffer_time);
alsa->buffer_time = buffer_time;
} }
if (period_time != -1 && !alsa->iec958) { if (period_time != -1 && !alsa->iec958) {
/* set the period time */ /* set the period time */
@ -504,6 +505,7 @@ retry:
goto retry; goto retry;
} }
GST_DEBUG_OBJECT (alsa, "period time %u", period_time); GST_DEBUG_OBJECT (alsa, "period time %u", period_time);
alsa->period_time = period_time;
} }
/* Set buffer size and period size manually for SPDIF */ /* Set buffer size and period size manually for SPDIF */