Const correctness is a good thing.
This commit is contained in:
parent
0410b00f68
commit
6d62a97b05
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue