Const correctness is a good thing.

This commit is contained in:
mark 2006-10-24 10:04:20 +00:00
parent 0410b00f68
commit 6d62a97b05
1 changed files with 3 additions and 3 deletions

View File

@ -523,15 +523,15 @@ bool
GstreamerPlayer :: setAudioDevice(const std::string &deviceName)
throw ()
{
bool oss = deviceName.find("/dev") == 0;
bool relink = false;
const bool oss = deviceName.find("/dev") == 0;
bool relink = false;
if (deviceName.size() == 0) {
return false;
}
if (audiosink) {
bool oldOss = g_strrstr(gst_element_get_name(audiosink), "osssink");
const bool oldOss = g_strrstr(gst_element_get_name(audiosink), "osssink");
relink = oss && !oldOss;
}