Const correctness is a good thing.
This commit is contained in:
parent
0410b00f68
commit
6d62a97b05
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue