Hello community,
here is the log from the commit of package yauap
checked in at Tue Jan 15 09:18:21 CET 2008.
--------
--- yauap/yauap.changes 2007-09-28 16:01:58.000000000 +0200
+++ /mounts/work_src_done/STABLE/yauap/yauap.changes 2008-01-14 13:17:41.179804000 +0100
@@ -1,0 +2,6 @@
+Mon Jan 14 13:15:21 CET 2008 - ssommer@suse.de
+
+- updated version to 0.2.2
+- all fixes have been included
+
+-------------------------------------------------------------------
Old:
----
yauap-0.2.1-fixes.patch
yauap-0.2.1-missing-plugins.patch
yauap-0.2.1.tar.gz
yauap-quit.diff
New:
----
yauap-0.2.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yauap.spec ++++++
--- /var/tmp/diff_new_pack.r20444/_old 2008-01-15 09:18:05.000000000 +0100
+++ /var/tmp/diff_new_pack.r20444/_new 2008-01-15 09:18:05.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package yauap (Version 0.2.1)
+# spec file for package yauap (Version 0.2.2)
#
-# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -16,17 +16,14 @@
BuildRequires: dbus-1-glib-devel
%endif
Summary: The useless audio player
-Version: 0.2.1
-Release: 22
+Version: 0.2.2
+Release: 1
Url: http://www.nongnu.org/yauap/
-License: LGPL v2 or later
+License: LGPL v2.1 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
-Patch2: yauap-quit.diff
%description
yauap is a simple commandline audio player based on GStreamer.
@@ -39,9 +36,6 @@
%prep
%setup -q
-%patch0 -p1
-%patch1
-%patch2
%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
@@ -57,7 +51,11 @@
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/yauap
+
%changelog
+* Mon Jan 14 2008 - ssommer@suse.de
+- updated version to 0.2.2
+- all fixes have been included
* Fri Sep 28 2007 - dmueller@suse.de
- quit when the host closed stdin
* Wed Sep 19 2007 - ssommer@suse.de
++++++ yauap-0.2.1.tar.gz -> yauap-0.2.2.tar.gz ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/ChangeLog new/yauap-0.2.2/ChangeLog
--- old/yauap-0.2.1/ChangeLog 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/ChangeLog 2008-01-14 11:24:16.000000000 +0100
@@ -1,3 +1,10 @@
+yauap 0.2.2
+ 0.2.2: 14. Jan, 2008
+ make sure that the player stops before a new file starts to play
+ fix segfault in player_get_scopedata (https://bugzilla.novell.com/show_bug.cgi?id=301791)
+ report missing plugins (https://bugzilla.novell.com/show_bug.cgi?id=307754)
+ terminate yauap when the stdin got closed
+
yauap 0.2.1
0.2.1: 31. Jul, 2007
updated SUSE specfile
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/commandline/kbd.c new/yauap-0.2.2/commandline/kbd.c
--- old/yauap-0.2.1/commandline/kbd.c 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/commandline/kbd.c 2008-01-14 11:24:16.000000000 +0100
@@ -36,6 +36,7 @@
#include
#include
+#include
#include "kbd.h"
@@ -56,9 +57,14 @@
/* Wait up to 'time' microseconds. */
tv.tv_sec=time/1000; tv.tv_usec = (time%1000)*1000;
retval=select(1, &rfds, NULL, NULL, &tv);
+ if (retval < 0 && errno == EINTR)
+ continue;
if(retval<=0) return -1;
/* Data is available now. */
retval=read(0,&getch2_buf[getch2_len],BUF_LEN-getch2_len);
+ /* stdin was closed, inject quit command */
+ if (retval == 0)
+ return 'q';
if(retval<1) return -1;
getch2_len+=retval;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/dbus-service/yauap-service.c new/yauap-0.2.2/dbus-service/yauap-service.c
--- old/yauap-0.2.1/dbus-service/yauap-service.c 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/dbus-service/yauap-service.c 2008-01-14 11:24:16.000000000 +0100
@@ -119,6 +119,7 @@
/* start playback at offset in ms */
static gboolean yauap_object_start(yauapObject *obj,unsigned int offset,int* ret,GError **error){
+ *ret = obj->player->stop(obj->player);
if(offset > 0)
*ret = obj->player->seek(obj->player,offset);
*ret = obj->player->start(obj->player);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/main.c new/yauap-0.2.2/main.c
--- old/yauap-0.2.1/main.c 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/main.c 2008-01-14 11:24:16.000000000 +0100
@@ -1,6 +1,6 @@
/*
* yauap - A simple commandline frontend for GStreamer
- * Copyright (c) 2006 Sascha Sommer
+ * Copyright (c) 2006 - 2008 Sascha Sommer
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -23,6 +23,7 @@
#include
#include
#include
+#include
#include "yauap.h"
@@ -48,8 +49,8 @@
#define SAMPLE_BUFFER_SIZE (SCOPE_SIZE * 1000)
unsigned char sample_buffer[SAMPLE_BUFFER_SIZE];
unsigned int sample_scale;
- unsigned int write_pos;
- unsigned int read_pos;
+ int write_pos;
+ int read_pos;
guint64 sample_timestamp;
} yauap_priv_t;
@@ -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;
@@ -759,7 +781,7 @@
int i;
int run=1;
- printf("yauap " VERSION " (C) 2006-2007 Sascha Sommer \n");
+ printf("yauap " VERSION " (C) 2006-2008 Sascha Sommer \n");
/* set function pointers */
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/Makefile new/yauap-0.2.2/Makefile
--- old/yauap-0.2.1/Makefile 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/Makefile 2008-01-14 11:24:16.000000000 +0100
@@ -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
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yauap-0.2.1/README new/yauap-0.2.2/README
--- old/yauap-0.2.1/README 2007-07-31 13:12:42.000000000 +0200
+++ new/yauap-0.2.2/README 2008-01-14 11:24:16.000000000 +0100
@@ -21,6 +21,7 @@
gstreamer010-plugins-base-oil
gstreamer010-plugins-good
gstreamer010-devel
+gstreamer010-plugins-base-devel
dbus-1
dbus-1-x11
dbus-1-devel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org