From 4458d45200f84c9c7fcb8511216e5952f39b20a4 Mon Sep 17 00:00:00 2001 From: Mattias Andersson Date: Thu, 5 Jul 2018 09:52:49 +0200 Subject: [PATCH] Give the cd device some more time to spin up --- src/devices/cddasongloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cddasongloader.cpp b/src/devices/cddasongloader.cpp index 9a584b10b..5d527d5df 100644 --- a/src/devices/cddasongloader.cpp +++ b/src/devices/cddasongloader.cpp @@ -116,7 +116,7 @@ void CddaSongLoader::LoadSongs() { GstMessage* msg_toc = nullptr; GstMessage* msg_tag = nullptr; while ((msg = gst_bus_timed_pop_filtered(GST_ELEMENT_BUS(pipeline), - GST_SECOND, (GstMessageType)(GST_MESSAGE_TOC | GST_MESSAGE_TAG)))) { + 2 * GST_SECOND, (GstMessageType)(GST_MESSAGE_TOC | GST_MESSAGE_TAG)))) { if (GST_MESSAGE_TYPE(msg) == GST_MESSAGE_TOC) { if (msg_toc) gst_message_unref(msg_toc); // Shouldn't happen, but just in case msg_toc = msg;