[gnome-sound-recorder] remove unnecessary dependency check
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sound-recorder] remove unnecessary dependency check
- Date: Sat, 6 Jun 2020 07:03:25 +0000 (UTC)
commit be86fe3cc24a26128d23ef53f461c8652ac4828c
Author: Kavan Mevada <kavanmevada gmail com>
Date: Mon Jun 1 23:11:25 2020 +0530
remove unnecessary dependency check
src/record.js | 11 -----------
1 file changed, 11 deletions(-)
---
diff --git a/src/record.js b/src/record.js
index a14ed41..e79292a 100644
--- a/src/record.js
+++ b/src/record.js
@@ -103,17 +103,6 @@ var Record = new GObject.registerClass({
if (this.initialFileName === -1)
this.throwError(101);
- if (this.srcElement === null) {
- let inspect = 'gst-inspect-1.0 pulseaudio';
- let err = GLib.spawn_command_line_sync(inspect)[2];
- let errStr = String(err);
- if (errStr.replace(/\W/g, ''))
- this.throwError(102);
- else
- this.throwError(103);
- return;
- }
-
try {
this.pipeline = new Gst.Pipeline({ name: 'pipe' });
this.srcElement = Gst.ElementFactory.make('pulsesrc', 'srcElement');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]