Ticket #13635: patch
File patch, 1.6 KB (added by , 4 years ago) |
---|
-
cdrip.cpp
old new 325 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 341 QApplication::postEvent( 331 342 m_parent, … … 340 351 } 341 352 } 342 353 343 if ( !encoder)354 if (encoder) 344 355 { 345 // This should never happen. 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; 356 ripTrack(m_cdDevice, encoder.get(), trackno + 1); 353 357 } 354 ripTrack(m_cdDevice, encoder.get(), trackno + 1);355 358 356 359 if (isCancelled()) 357 360 {