author | llornkcor <llornkcor> | 2002-04-23 00:04:57 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-23 00:04:57 (UTC) |
commit | 228dffdc2721ee13ca9491584d8cc46cd4807cc1 (patch) (side-by-side diff) | |
tree | b0431ae74b7a64272748899c556165d194a09740 /core | |
parent | b3190f8be01fb364f89d9de0a0dddb9a5ccebe77 (diff) | |
download | opie-228dffdc2721ee13ca9491584d8cc46cd4807cc1.zip opie-228dffdc2721ee13ca9491584d8cc46cd4807cc1.tar.gz opie-228dffdc2721ee13ca9491584d8cc46cd4807cc1.tar.bz2 |
config fix
-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 c744c6d..319e0ff 100644 --- a/core/multimedia/opieplayer/libmad/libmadplugin.cpp +++ b/core/multimedia/opieplayer/libmad/libmadplugin.cpp @@ -402,49 +402,49 @@ int LibMadPlugin::http_open(const QString& path ) { name = tr("Name: ") + QString(http_request).mid(9, (QString(http_request).length())- 9 ); } else if ( QString( http_request ).left( 9 ) == "icy-genre" ) { genre = tr("Genre: ") + QString(http_request).mid(10, (QString(http_request).length())-10 ); } else if ( QString( http_request ).left( 6 ) == "icy-br" ) { bitrate = tr("Bitrate: ") + QString(http_request).mid(7, (QString(http_request).length())- 7 ); } else if ( QString( http_request ).left( 7 ) == "icy-url" ) { url = tr("URL: ") + QString(http_request).mid(8, (QString(http_request).length())- 8 ); } else if ( QString( http_request ).left( 10 ) == "icy-notice" ) { message += QString(http_request).mid(11, QString(http_request).length()-11 ) ; } } } while (strcmp(http_request, "\n") != 0); info = QString(name + genre + url + bitrate + message).replace( QRegExp("\n"), " : " ); qDebug("Stream info: " + info); 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" ) { qDebug("Test2"); // in case of any error we get 0 here if ( !(http_open(path) == 0) ) { qDebug("Test3"); d->input.fd = http_open(path); } else { qDebug("Test5"); return FALSE; } } else { qDebug("Test4"); d->input.path = path.latin1(); d->input.fd = ::open( d->input.path, O_RDONLY ); |