[gnac] Checked whether plugin installation is supported



commit e5c98b4b2682832e3ab328eebf59ab84bb177cd8
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Thu May 20 21:37:13 2010 +0100

    Checked whether plugin installation is supported

 libgnac/libgnac-media-item.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libgnac/libgnac-media-item.c b/libgnac/libgnac-media-item.c
index e27c44e..05c0ebd 100644
--- a/libgnac/libgnac-media-item.c
+++ b/libgnac/libgnac-media-item.c
@@ -100,7 +100,8 @@ libgnac_item_build(LibgnacMediaItem  *item,
 
   libgnac_gst_build_pipeline(item, item->profile, has_video, &err);
   if (err) {
-    if (g_error_matches(err, LIBGNAC_ERROR, LIBGNAC_ERROR_MISSING_PLUGIN))
+    if (g_error_matches(err, LIBGNAC_ERROR, LIBGNAC_ERROR_MISSING_PLUGIN) &&
+        gst_install_plugins_supported())
     {
       gchar *detail;
       GstMessage *msg;



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