Hello community, here is the log from the commit of package yauap checked in at Thu Sep 20 14:35:16 CEST 2007. -------- --- yauap/yauap.changes 2007-08-24 13:53:21.000000000 +0200 +++ /mounts/work_src_done/STABLE/yauap/yauap.changes 2007-09-19 15:50:05.831470000 +0200 @@ -1,0 +2,5 @@ +Wed Sep 19 15:49:22 CEST 2007 - ssommer@suse.de + +- report missing plugins (#307754) + +------------------------------------------------------------------- New: ---- yauap-0.2.1-missing-plugins.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yauap.spec ++++++ --- /var/tmp/diff_new_pack.R24130/_old 2007-09-20 14:35:06.000000000 +0200 +++ /var/tmp/diff_new_pack.R24130/_new 2007-09-20 14:35:06.000000000 +0200 @@ -11,20 +11,21 @@ # norootforbuild Name: yauap -BuildRequires: dbus-1-devel gstreamer010-devel +BuildRequires: dbus-1-devel gstreamer010-devel gstreamer010-plugins-base-devel %if %suse_version > 1010 BuildRequires: dbus-1-glib-devel %endif Summary: The useless audio player Version: 0.2.1 -Release: 10 -URL: http://www.nongnu.org/yauap/ +Release: 18 +Url: http://www.nongnu.org/yauap/ License: LGPL v2 or later Group: Productivity/Multimedia/Sound/Players Requires: gstreamer010 gstreamer010-plugins-base-oil gstreamer010-plugins-good dbus-1-x11 BuildRoot: %{_tmppath}/%{name}-%{version}-build Source0: %{name}-%{version}.tar.gz Patch0: yauap-0.2.1-fixes.patch +Patch1: yauap-0.2.1-missing-plugins.patch %description yauap is a simple commandline audio player based on GStreamer. @@ -38,10 +39,10 @@ %prep %setup -q %patch0 -p1 +%patch1 %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" - %__make %install @@ -54,8 +55,9 @@ %defattr(-,root,root) %doc README COPYING %{_bindir}/yauap - %changelog +* Wed Sep 19 2007 - ssommer@suse.de +- report missing plugins (#307754) * Thu Aug 23 2007 - ssommer@suse.de - make sure that the player stops before a new file starts to play - fix segfault in player_get_scopedata (#301791) ++++++ yauap-0.2.1-missing-plugins.patch ++++++ Index: main.c =================================================================== RCS file: /sources/yauap/yauap/main.c,v retrieving revision 1.15 diff -u -r1.15 main.c --- main.c 24 Aug 2007 14:05:59 -0000 1.15 +++ main.c 19 Sep 2007 13:54:49 -0000 @@ -23,6 +23,7 @@ #include <string.h> #include <unistd.h> #include <gst/gst.h> +#include <gst/pbutils/missing-plugins.h> #include "yauap.h" @@ -363,6 +364,27 @@ player_stop(player); signal_frontend(player,SIGNAL_EOS,"end of stream"); break; + case GST_MESSAGE_ELEMENT: + if(gst_is_missing_plugin_message(msg)){ + char* desc = gst_missing_plugin_message_get_description(msg); + char* installer_details = gst_missing_plugin_message_get_installer_detail(msg); + size_t msg_len = strlen(desc) + strlen(installer_details) + strlen("plugin ") + strlen(" is missing (") + 2; + char* text = malloc(msg_len); + snprintf(text,msg_len,"plugin %s is missing (%s)",desc,installer_details); + if(desc) + g_free(desc); + if(installer_details) + g_free(installer_details); + printf("\nError: %s\n",text); + signal_frontend(player,SIGNAL_ERROR,text); + free(text); + + signal_frontend(player,SIGNAL_EOS,"unable to continue"); + + player_stop(player); + + } + break; case GST_MESSAGE_ERROR: { gchar *debug; GError *err; Index: Makefile =================================================================== RCS file: /sources/yauap/yauap/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 14 Nov 2006 13:35:34 -0000 1.1 +++ Makefile 19 Sep 2007 13:54:49 -0000 @@ -10,7 +10,7 @@ LDFLAGS += `pkg-config --libs glib-2.0` #gstreamer CFLAGS += `pkg-config --cflags gstreamer-0.10` -LDFLAGS += `pkg-config --libs gstreamer-0.10` +LDFLAGS += `pkg-config --libs gstreamer-0.10` -lgstpbutils-0.10 #dbus CFLAGS += `pkg-config --cflags dbus-1` LDFLAGS += `pkg-config --libs dbus-1` -ldbus-glib-1 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de