[gnome-sound-recorder] Revert "record.js: Make the missing plugin messages useful"



commit 33a50cca96da938fb1091450135a08b5a4e3bdd4
Author: Meg Ford <meg387 gmail com>
Date:   Wed Mar 19 10:18:56 2014 -0500

    Revert "record.js: Make the missing plugin messages useful"
    
    This reverts commit 5840d4309fd9c5b8bd7a8fdd4501ab66cced3761.

 src/record.js |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/record.js b/src/record.js
index 011c2f8..f01b346 100644
--- a/src/record.js
+++ b/src/record.js
@@ -103,8 +103,8 @@ const Record = new Lang.Class({
                     }
                 }
             }));
-        this.pipeline.add(this.ebin);
         let ebinProfile = this.ebin.set_property("profile", this._mediaProfile);
+        this.pipeline.add(this.ebin);
         let srcpad = this.ebin.get_static_pad("src");
         this.giosink = Gst.ElementFactory.make("giosink", "giosink");
         this.giosink.set_property("file", this.initialFileName);
@@ -155,6 +155,7 @@ const Record = new Lang.Class({
         this.pipeState = PipelineStates.PLAYING;
         
         if (ret == Gst.StateChangeReturn.FAILURE) {
+            this._showErrorDialog(_('Unable to set the pipeline \n to the recording state')); 
             this.initialFileName.delete_async(GLib.PRIORITY_DEFAULT, null, null);
         } else {        
             MainWindow.view.setVolume(); 
@@ -195,7 +196,8 @@ const Record = new Lang.Class({
                 let errorTwo = null; 
                 let detail = GstPbutils.missing_plugin_message_get_installer_detail(this.localMsg);
                        
-                errorOne = _("You are missing plugins:");
+                if (detail != null)
+                    errorOne = detail;
                                                    
                 let description = GstPbutils.missing_plugin_message_get_description(this.localMsg);
                    


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]