Const correctness is a good thing.

This commit is contained in:
mark 2006-10-24 10:04:20 +00:00
parent 0410b00f68
commit 6d62a97b05

View file

@ -523,15 +523,15 @@ bool
GstreamerPlayer :: setAudioDevice(const std::string &deviceName) GstreamerPlayer :: setAudioDevice(const std::string &deviceName)
throw () throw ()
{ {
bool oss = deviceName.find("/dev") == 0; const bool oss = deviceName.find("/dev") == 0;
bool relink = false; bool relink = false;
if (deviceName.size() == 0) { if (deviceName.size() == 0) {
return false; return false;
} }
if (audiosink) { 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; relink = oss && !oldOss;
} }