From 639e2d43462edde319f3b45da88298c4c7415e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 29 May 2013 16:39:17 +0200 Subject: [PATCH] alsasink: Update internal buffer/period times with the values that were configured on the device --- ext/alsa/gstalsasink.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index 81731b6bb6..19dbd8bde6 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -491,6 +491,7 @@ retry: goto retry; } GST_DEBUG_OBJECT (alsa, "buffer time %u", buffer_time); + alsa->buffer_time = buffer_time; } if (period_time != -1 && !alsa->iec958) { /* set the period time */ @@ -504,6 +505,7 @@ retry: goto retry; } GST_DEBUG_OBJECT (alsa, "period time %u", period_time); + alsa->period_time = period_time; } /* Set buffer size and period size manually for SPDIF */