From dee9f17b595ea903a982d31d1124b302bb17e2ff Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Jul 2013 00:58:52 -0700 Subject: Wed Jul 17 00:58:51 PDT 2013 --- community/gnome-media/PKGBUILD | 45 ---------------------- community/gnome-media/gnome-media.install | 26 ------------- ...hould-call-gnome-control-center-sound-not.patch | 35 ----------------- .../grecord-add-PULSEPROPmediarole.patch | 26 ------------- .../grecord-send-eos-before-we-stop-record.patch | 41 -------------------- 5 files changed, 173 deletions(-) delete mode 100644 community/gnome-media/PKGBUILD delete mode 100644 community/gnome-media/gnome-media.install delete mode 100644 community/gnome-media/grecord-Should-call-gnome-control-center-sound-not.patch delete mode 100644 community/gnome-media/grecord-add-PULSEPROPmediarole.patch delete mode 100644 community/gnome-media/grecord-send-eos-before-we-stop-record.patch (limited to 'community/gnome-media') diff --git a/community/gnome-media/PKGBUILD b/community/gnome-media/PKGBUILD deleted file mode 100644 index 2b60a714d..000000000 --- a/community/gnome-media/PKGBUILD +++ /dev/null @@ -1,45 +0,0 @@ -# $Id: PKGBUILD 87933 2013-04-08 20:25:18Z bgyorgy $ -# Maintainer: Balló György -# Contributor: Jan de Groot - -pkgname=gnome-media -pkgver=3.4.0 -pkgrel=2 -pkgdesc="Sound recorder and GStreamer 0.10 configuration tool for GNOME" -arch=('i686' 'x86_64') -license=('GPL') -depends=('libgnome-media-profiles' 'gstreamer0.10-good-plugins' 'hicolor-icon-theme') -makedepends=('intltool' 'gnome-doc-utils') -optdepends=('gstreamer0.10-ugly-plugins: Record sound into mp3 format') -url="https://git.gnome.org/browse/gnome-media" -install=$pkgname.install -source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz - grecord-add-PULSEPROPmediarole.patch - grecord-Should-call-gnome-control-center-sound-not.patch - grecord-send-eos-before-we-stop-record.patch) -sha256sums=('a76fac286f24d3836137ddbaab66f05e19eb5fb83cca6e375dbef040765a1d1f' - '7abd86638ccde30232455ea66a7aff244f5c1cc5f3620b85f0215bf4bd07d546' - '6c8af4bf741d702ce3722cc2bfd1b7caa44f142776706157851184fb2bc55e04' - '5feb1e447f9ac575b282b05be9bfc946794635f98f63cf24603f931767ec8f9d') - -build() { - cd "$pkgname-$pkgver" - - # Upstream fixes - patch -Np1 -i "$srcdir/grecord-add-PULSEPROPmediarole.patch" - patch -Np1 -i "$srcdir/grecord-Should-call-gnome-control-center-sound-not.patch" - patch -Np1 -i "$srcdir/grecord-send-eos-before-we-stop-record.patch" - - ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ - --disable-schemas-install \ - --with-gconf-schema-file-dir=/usr/share/gconf/schemas - make -} - -package() { - cd "$pkgname-$pkgver" - make DESTDIR="$pkgdir" install - - # Sound theme moved to gnome-control-center - rm -rf "$pkgdir"/usr/share/{gnome-media,sounds} -} diff --git a/community/gnome-media/gnome-media.install b/community/gnome-media/gnome-media.install deleted file mode 100644 index 0574e8765..000000000 --- a/community/gnome-media/gnome-media.install +++ /dev/null @@ -1,26 +0,0 @@ -pkgname=gnome-sound-recorder - -post_install() { - usr/sbin/gconfpkg --install ${pkgname} - gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor -} - -pre_upgrade() { - pre_remove $1 -} - -post_upgrade() { - post_install $1 -} - -pre_remove() { - if [ "$(vercmp 3.4.0-2 "$2")" -eq 1 ]; then - usr/sbin/gconfpkg --uninstall gnome-media - else - usr/sbin/gconfpkg --uninstall ${pkgname} - fi -} - -post_remove() { - gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor -} diff --git a/community/gnome-media/grecord-Should-call-gnome-control-center-sound-not.patch b/community/gnome-media/grecord-Should-call-gnome-control-center-sound-not.patch deleted file mode 100644 index e3908d3cc..000000000 --- a/community/gnome-media/grecord-Should-call-gnome-control-center-sound-not.patch +++ /dev/null @@ -1,35 +0,0 @@ -From ea6fee0fbf8662a32a5cd2b5c96c1f75a9233813 Mon Sep 17 00:00:00 2001 -From: Sebastien Bacher -Date: Thu, 07 Jun 2012 16:26:26 +0000 -Subject: grecord: Should call "gnome-control-center sound" not the old g-v-c - -Signed-off-by: Oleksij Rempel - -https://bugzilla.gnome.org/show_bug.cgi?id=667402 ---- -diff --git a/grecord/src/gsr-window.c b/grecord/src/gsr-window.c -index bebb991..bd802d6 100644 ---- a/grecord/src/gsr-window.c -+++ b/grecord/src/gsr-window.c -@@ -805,16 +805,16 @@ run_mixer_cb (GtkAction *action, - GSRWindow *window) - { - char *mixer_path; -- char *argv[4] = {NULL, "--page", "recording", NULL}; -+ char *argv[4] = {NULL, "sound", "input", NULL}; - GError *error = NULL; - gboolean ret; - - /* Open the mixer */ -- mixer_path = g_find_program_in_path ("gnome-volume-control"); -+ mixer_path = g_find_program_in_path ("gnome-control-center"); - if (mixer_path == NULL) { - show_error_dialog (GTK_WINDOW (window), NULL, - _("%s is not installed in the path."), -- "gnome-volume-control"); -+ "gnome-control-center"); - return; - } - --- -cgit v0.9.1 diff --git a/community/gnome-media/grecord-add-PULSEPROPmediarole.patch b/community/gnome-media/grecord-add-PULSEPROPmediarole.patch deleted file mode 100644 index b75dd3c5c..000000000 --- a/community/gnome-media/grecord-add-PULSEPROPmediarole.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 5453719b61ada75f635f0c3ad3c78651102d7615 Mon Sep 17 00:00:00 2001 -From: Oleksij Rempel -Date: Wed, 06 Jun 2012 11:50:04 +0000 -Subject: grecord: add "PULSE_PROP_media.role" - -For more details see: -http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/ApplicationProperties - -Signed-off-by: Oleksij Rempel - -https://bugzilla.gnome.org/show_bug.cgi?id=644908 ---- -diff --git a/grecord/src/gnome-recorder.c b/grecord/src/gnome-recorder.c -index c6c7b7e..c7ec5cc 100644 ---- a/grecord/src/gnome-recorder.c -+++ b/grecord/src/gnome-recorder.c -@@ -190,6 +190,7 @@ main (int argc, - - g_option_context_free (ctx); - gtk_window_set_default_icon_name ("gnome-sound-recorder"); -+ g_setenv ("PULSE_PROP_media.role", "production", TRUE); - - /* use it like a singleton */ - gconf_client = gconf_client_get_default (); --- -cgit v0.9.1 diff --git a/community/gnome-media/grecord-send-eos-before-we-stop-record.patch b/community/gnome-media/grecord-send-eos-before-we-stop-record.patch deleted file mode 100644 index e760b7e3b..000000000 --- a/community/gnome-media/grecord-send-eos-before-we-stop-record.patch +++ /dev/null @@ -1,41 +0,0 @@ -From 99e7a41b2e4c217aca7faffb7668b1ac84ae1ed2 Mon Sep 17 00:00:00 2001 -From: Oleksij Rempel -Date: Thu, 07 Jun 2012 17:11:02 +0000 -Subject: grecord: send eos before we stop record. - -Current grecord produces files without EOS. This can be tested -with tool "ogginfo". - -accodrding to this documentation: -http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html -"Controlled shutdown of live sources in applications" -"Since GStreamer 0.10.16 an application may send an EOS event to a source element to make it perform the EOS logic". - -So this patch make sure we send EOS before we stop recording. - -Signed-off-by: Oleksij Rempel - -https://bugzilla.gnome.org/show_bug.cgi?id=677644 ---- -diff --git a/grecord/src/gsr-window.c b/grecord/src/gsr-window.c -index bd802d6..850ebf0 100644 ---- a/grecord/src/gsr-window.c -+++ b/grecord/src/gsr-window.c -@@ -1279,8 +1279,14 @@ stop_cb (GtkAction *action, - GST_DEBUG ("Stopping play pipeline"); - set_pipeline_state_to_null (priv->play->pipeline); - } else if (priv->record && priv->record->state == GST_STATE_PLAYING) { -+ GstMessage *msg; -+ - GST_DEBUG ("Stopping recording source"); -- /* GstBaseSrc will automatically send an EOS when stopping */ -+ gst_element_send_event (priv->record->src, gst_event_new_eos ()); -+ /* wait one second for EOS message on the pipeline bus */ -+ msg = gst_bus_timed_pop_filtered (GST_ELEMENT_BUS (priv->record->pipeline), GST_SECOND, GST_MESSAGE_EOS | GST_MESSAGE_ERROR); -+ gst_message_unref (msg); -+ - gst_element_set_state (priv->record->src, GST_STATE_NULL); - gst_element_get_state (priv->record->src, NULL, NULL, -1); - gst_element_set_locked_state (priv->record->src, TRUE); --- -cgit v0.9.1 -- cgit v1.2.3-54-g00ecf