1
0
mirror of https://gitlab.xiph.org/xiph/ezstream.git synced 2024-12-04 14:46:31 -05:00

support for theora streams

git-svn-id: https://svn.xiph.org/trunk/ezstream@7103 0101bb08-14d6-0310-b084-bc0e0c8e3800
This commit is contained in:
oddsock 2004-07-12 19:13:14 +00:00
parent b85a6a2ca3
commit 7dcb27fcf4
3 changed files with 7 additions and 7 deletions

View File

@ -24,8 +24,8 @@ void printConfig()
if (ezConfig.format == MP3_FORMAT) { if (ezConfig.format == MP3_FORMAT) {
printf("Broadcasting in MP3 format\n"); printf("Broadcasting in MP3 format\n");
} }
if (ezConfig.format == OGGVORBIS_FORMAT) { if (ezConfig.format == OGG_FORMAT) {
printf("Broadcasting in Ogg Vorbis format\n"); printf("Broadcasting in Ogg format\n");
} }
if (ezConfig.format == 0) { if (ezConfig.format == 0) {
printf("Broadcast format not set\n"); printf("Broadcast format not set\n");
@ -145,8 +145,8 @@ int parseConfig(char *fileName)
if (!strcmp(ls_xmlContentPtr, "MP3")) { if (!strcmp(ls_xmlContentPtr, "MP3")) {
ezConfig.format = MP3_FORMAT; ezConfig.format = MP3_FORMAT;
} }
if (!strcmp(ls_xmlContentPtr, "OGGVORBIS")) { if (!strcmp(ls_xmlContentPtr, "OGG")) {
ezConfig.format = OGGVORBIS_FORMAT; ezConfig.format = OGG_FORMAT;
} }
} }
xmlFree(ls_xmlContentPtr); xmlFree(ls_xmlContentPtr);

View File

@ -5,7 +5,7 @@
#define MP3_FORMAT 1 #define MP3_FORMAT 1
#define OGGVORBIS_FORMAT 2 #define OGG_FORMAT 2
typedef struct tag_EZCONFIG { typedef struct tag_EZCONFIG {
char *URL; char *URL;

View File

@ -320,8 +320,8 @@ int main(int argc, char **argv)
return 1; return 1;
} }
} }
if (pezConfig->format == OGGVORBIS_FORMAT) { if (pezConfig->format == OGG_FORMAT) {
if (shout_set_format(shout, SHOUT_FORMAT_VORBIS) != SHOUTERR_SUCCESS) { if (shout_set_format(shout, SHOUT_FORMAT_OGG) != SHOUTERR_SUCCESS) {
printf("Error setting user: %s\n", shout_get_error(shout)); printf("Error setting user: %s\n", shout_get_error(shout));
return 1; return 1;
} }