Give the cd device some more time to spin up

This commit is contained in:
Mattias Andersson 2018-07-05 09:52:49 +02:00 committed by John Maguire
parent b897651cdb
commit 4458d45200
1 changed files with 1 additions and 1 deletions

View File

@ -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;