Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 735026
Collapse All | Expand All

(-)mythplugins/mythmusic/mythmusic/cdrip.cpp (-11 / +14 lines)
Lines 325-331 Link Here
325
                                                  titleTrack));
325
                                                  titleTrack));
326
                }
326
                }
327
327
328
                if (!encoder->isValid())
328
                if (!encoder)
329
                {
330
                    // This should never happen.
331
                    QApplication::postEvent(
332
                        m_parent,
333
                        new RipStatusEvent(RipStatusEvent::kEncoderErrorEvent,
334
                                           "Failed to create encoder"));
335
                    LOG(VB_GENERAL, LOG_ERR, "MythMusic: No encoder, failing");
336
                    RunEpilog();
337
                    return;
338
                }
339
                else if (!encoder->isValid())
329
                {
340
                {
330
                    QApplication::postEvent(
341
                    QApplication::postEvent(
331
                        m_parent,
342
                        m_parent,
Lines 340-357 Link Here
340
                }
351
                }
341
            }
352
            }
342
353
343
            if (!encoder)
354
            if (encoder)
344
            {
355
            {
345
                // This should never happen.
356
                ripTrack(m_cdDevice, encoder.get(), trackno + 1);
346
                QApplication::postEvent(
347
                    m_parent,
348
                    new RipStatusEvent(RipStatusEvent::kEncoderErrorEvent,
349
                                       "Failed to create encoder"));
350
                LOG(VB_GENERAL, LOG_ERR, "MythMusic: No encoder, failing");
351
                RunEpilog();
352
                return;
353
            }
357
            }
354
            ripTrack(m_cdDevice, encoder.get(), trackno + 1);
355
358
356
            if (isCancelled())
359
            if (isCancelled())
357
            {
360
            {

Return to bug 735026