author | llornkcor <llornkcor> | 2002-04-20 19:23:50 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-20 19:23:50 (UTC) |
commit | cab475701ef94588394bb10f7fdc86dff98867c8 (patch) (side-by-side diff) | |
tree | b647e764a904e2896187db5949509a4be317cb0f | |
parent | 0169070eeca0ef41d33c4e8b2feee9c90f34f6ae (diff) | |
download | opie-cab475701ef94588394bb10f7fdc86dff98867c8.zip opie-cab475701ef94588394bb10f7fdc86dff98867c8.tar.gz opie-cab475701ef94588394bb10f7fdc86dff98867c8.tar.bz2 |
MediaPlayer to OpiePlayer
-rw-r--r-- | core/multimedia/opieplayer/libmad/libmadplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/multimedia/opieplayer/libmad/libmadplugin.cpp b/core/multimedia/opieplayer/libmad/libmadplugin.cpp index 7bb6541..46f2450 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp @@ -323,49 +323,49 @@ int LibMadPlugin::http_open(const QString& path ) { if (strncmp(http_request, "ICY ", 4) == 0) { /* This is icecast streaming */ if (strncmp(http_request + 4, "200 ", 4)) { fprintf(stderr, "http_open: %s\n", http_request); return 0; } } else if (strncmp(http_request, "icy-", 4) == 0) { /* we can have: icy-noticeX, icy-name, icy-genre, icy-url, icy-pub, icy-metaint, icy-br */ /* Don't print these - mpg123 doesn't */ /* fprintf(stderr,"%s\n",http_request); */ } } while (strcmp(http_request, "\n") != 0); return (tcp_sock); } bool LibMadPlugin::open( const QString& path ) { debugMsg( "LibMadPlugin::open" ); - Config cfg("MediaPlayer"); + Config cfg("OpiePlayer"); cfg.setGroup("Options"); bufferSize = cfg.readNumEntry("MPeg_BufferSize",MPEG_BUFFER_SIZE); qDebug("buffer size is %d", bufferSize); d->bad_last_frame = 0; d->flush = TRUE; info = QString( "" ); //qDebug( "Opening %s", path.latin1() ); if (path.left( 4 ) == "http" ) { d->input.fd = http_open(path); } else { d->input.path = path.latin1(); d->input.fd = ::open( d->input.path, O_RDONLY ); } if (d->input.fd == -1) { qDebug("error opening %s", d->input.path ); return FALSE; } printID3Tags(); |