[Xfce4-commits] [apps/parole] 01/01: Correctly handle missing plugins helper (thanks Andre) (bug 14529)

noreply at xfce.org noreply at xfce.org
Sat Sep 1 00:39:36 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/parole.

commit f756317140942976439292201e6596042952ce55
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Fri Aug 31 18:39:29 2018 -0400

    Correctly handle missing plugins helper (thanks Andre) (bug 14529)
---
 src/gst/parole-gst.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c
index 8e0cc4a..d05e786 100644
--- a/src/gst/parole-gst.c
+++ b/src/gst/parole-gst.c
@@ -1299,9 +1299,6 @@ parole_gst_install_plugins_result_func(GstInstallPluginsReturn result, gpointer
         case GST_INSTALL_PLUGINS_USER_ABORT:
             g_debug("User aborted plugin install.\n");
             break;
-        case GST_INSTALL_PLUGINS_HELPER_MISSING:
-            parole_gst_missing_codec_helper_dialog();
-            break;
         default:
             g_debug("Plugin installation failed with code %i\n", result);
             break;
@@ -1436,6 +1433,8 @@ parole_gst_bus_event(GstBus *bus, GstMessage *msg, gpointer data) {
         break;
     case GST_MESSAGE_ELEMENT:
         if (gst_is_missing_plugin_message(msg)) {
+            GstInstallPluginsReturn result;
+
             g_debug("Missing plugin\n");
             parole_gst_stop(gst);
             dialog = parole_gst_missing_codec_dialog(gst, msg);
@@ -1453,9 +1452,13 @@ parole_gst_bus_event(GstBus *bus, GstMessage *msg, gpointer data) {
                 }
 #endif /* GDK_WINDOWING_X11 */
 
-                 gst_install_plugins_async((const gchar * const *) details, ctx,
-                                           parole_gst_install_plugins_result_func, gst);
-                 gst_install_plugins_context_free(ctx);
+                result = gst_install_plugins_async((const gchar * const *) details,
+                    ctx, parole_gst_install_plugins_result_func, gst);
+
+                if (result == GST_INSTALL_PLUGINS_HELPER_MISSING)
+                    parole_gst_missing_codec_helper_dialog();
+
+                gst_install_plugins_context_free(ctx);
             } else if ( (response == GTK_RESPONSE_REJECT) || (response == GTK_RESPONSE_OK) ) {
                 gtk_widget_destroy(GTK_WIDGET(dialog));
             }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list