mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-26 12:36:15 -05:00
Make sure not to play data_kind 1 songs -- radio stations
This commit is contained in:
@@ -788,6 +788,10 @@ void dispatch_stream_id(WS_CONNINFO *pwsc, int session, char *id) {
|
||||
/**********************
|
||||
* stream file normally
|
||||
**********************/
|
||||
if(pmp3->data_kind != 0) {
|
||||
ws_returnerror(pwsc,500,"Can't stream radio station");
|
||||
return;
|
||||
}
|
||||
file_fd=r_open2(pmp3->path,O_RDONLY);
|
||||
if(file_fd == -1) {
|
||||
pwsc->error=errno;
|
||||
|
||||
@@ -464,6 +464,11 @@ int plugin_ssc_should_transcode(WS_CONNINFO *pwsc, char *codec) {
|
||||
int result;
|
||||
char *native_codecs=NULL;
|
||||
char *user_agent=NULL;
|
||||
|
||||
if(!codec) {
|
||||
DPRINTF(E_LOG,L_PLUG,"testing transcode on null codec?\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if(pwsc) {
|
||||
/* see if the headers give us any guidance */
|
||||
|
||||
Reference in New Issue
Block a user