mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 04:26:16 +02:00
init player when receiving a header message
This commit is contained in:
parent
94944681c2
commit
7b1323646f
12 changed files with 149 additions and 117 deletions
|
@ -17,10 +17,12 @@
|
|||
***/
|
||||
|
||||
#include "encoderFactory.h"
|
||||
#include "common/utils.h"
|
||||
#include "pcmEncoder.h"
|
||||
#include "oggEncoder.h"
|
||||
#include "flacEncoder.h"
|
||||
#include "common/utils.h"
|
||||
#include "common/snapException.h"
|
||||
#include "common/log.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
@ -44,8 +46,7 @@ Encoder* EncoderFactory::createEncoder(const std::string& codecSettings) const
|
|||
encoder = new FlacEncoder(codecOptions);
|
||||
else
|
||||
{
|
||||
cout << "unknown codec: " << codec << "\n";
|
||||
return NULL;
|
||||
throw SnapException("unknown codec: " + codec);
|
||||
}
|
||||
|
||||
return encoder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue