Skip to content

Commit

Permalink
3.18.2.1
Browse files Browse the repository at this point in the history
* null check for stream, (bug due to fix for port null check)
  • Loading branch information
gopi committed Jan 21, 2016
1 parent f424558 commit 86313f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,13 @@ const SoundOutputDeviceChooser = new Lang.Class({
if(uidevice && uidevice.port_available)
{
let stream = this._control.get_stream_from_device(uidevice);
let stream_port = stream.get_port();
if(stream_port && stream == defaultSink && stream_port.port === uidevice.get_port()) {
this._outputActivated(this._control, id);
if(stream)
{
let stream_port = stream.get_port();

if(stream_port && stream == defaultSink && stream_port.port === uidevice.get_port()) {
this._outputActivated(this._control, id);
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion [email protected]/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
],
"url": "https://github.com/kgshank/gse-sound-output-device-chooser",
"uuid": "[email protected]",
"version": "3.18.1.1"
"version": "3.18.2.1"
}

0 comments on commit 86313f0

Please sign in to comment.