Skip to content

Commit

Permalink
try to show the sound process pid on session info
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@8787 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 17, 2015
1 parent 8b56fa9 commit a810574
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/xpra/client/gtk_base/session_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,12 @@ def pipeline_info(can_use, sound_pipeline):
if state!="active":
return state
s = "%s: %s" % (state, sound_pipeline.codec_description)
try:
pid = sound_pipeline.get_info().get("pid")
if pid:
s += " (pid=%s)" % pid
except:
pass
#if sound_pipeline.bitrate>0:
# s += " / %sbit/s" % std_unit(sound_pipeline.bitrate)
return s
Expand Down
2 changes: 2 additions & 0 deletions src/xpra/sound/sound_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

import os
import time

from xpra.sound.gstreamer_util import gst
Expand Down Expand Up @@ -49,6 +50,7 @@ def get_info(self):
"bytes" : self.byte_count,
"pipeline" : self.pipeline_str,
"volume" : self.get_volume(),
"pid" : os.getpid(),
}
if self.codec_mode:
info["codec_mode"] = self.codec_mode
Expand Down

0 comments on commit a810574

Please sign in to comment.