summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2011-03-23 17:09:16 +0100
committerAlessandro Decina <alessandro.d@gmail.com>2011-03-23 17:09:16 +0100
commitae6833d6da1e85b917768de1135d43818efd1ef7 (patch)
tree22679aab11c2d4f7daaaa9d3e19046fdaeac760c
parentf650110a56a2428e17371550c587ec3624d8fd50 (diff)
GstDriver: be more verbose about missing-plugin messages
-rw-r--r--gstplayer/Android.mk1
-rwxr-xr-xgstplayer/GstDriver.cpp7
2 files changed, 7 insertions, 1 deletions
diff --git a/gstplayer/Android.mk b/gstplayer/Android.mk
index ff3edba..cc5243f 100644
--- a/gstplayer/Android.mk
+++ b/gstplayer/Android.mk
@@ -25,6 +25,7 @@ LOCAL_CFLAGS := \
LOCAL_SHARED_LIBRARIES := \
libgstreamer-0.10 \
libgstbase-0.10 \
+ libgstpbutils-0.10 \
libglib-2.0 \
libgthread-2.0 \
libgmodule-2.0 \
diff --git a/gstplayer/GstDriver.cpp b/gstplayer/GstDriver.cpp
index f7301d9..9731427 100755
--- a/gstplayer/GstDriver.cpp
+++ b/gstplayer/GstDriver.cpp
@@ -24,6 +24,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "GstDriver.h"
#include "GstPlayer.h"
#include <gst/video/video.h>
+#include <gst/pbutils/pbutils.h>
#include <fcntl.h>
#include <media/Metadata.h>
@@ -849,7 +850,11 @@ GstDriver::bus_message (GstBus * bus, GstMessage * msg, gpointer data)
}
if (gst_structure_has_name (gstruct, "missing-plugin")) {
- LOGV ("a plugin is missing send error message");
+ gchar *detail;
+
+ detail = gst_missing_plugin_message_get_installer_detail (msg);
+ LOGV ("a plugin is missing send error message %s", detail);
+ g_free (detail);
if (parent) {
parent->sendEvent (MEDIA_ERROR, 0);
}