debian/0000775000000000000000000000000012277427647007212 5ustar debian/copyright0000664000000000000000000000243411504606505011130 0ustar This package was debianized by: Bilal Akhtar on Sun, 02 May 2010 17:27:04 +0300 It was downloaded from: https://launchpad.net/gnome-media-player Upstream Author(s): Michael Lamothe Bilal Akhtar Copyright: Copyright (C) 2010 Michael Lamothe License: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. The Debian packaging is: Copyright (C) 2010 Bilal Akhtar and is licensed under the GPL version 3 or later, see above. debian/changelog0000664000000000000000000000453112277427637011066 0ustar gnome-media-player (0.1.3-0ubuntu5) trusty; urgency=low * Use autotools-dev for arm64. -- Daniel T Chen Fri, 14 Feb 2014 10:00:36 -0500 gnome-media-player (0.1.3-0ubuntu4) natty; urgency=low * debian/control: - Add myself as maintainer. - Add correct Vcs-* URLs. * debian/patches/mouse-event-support.patch: Backport upstream patch which re-adds support for double-click in playback area to toggle fullscreen. This feature got removed when the application was updated to use vlc 1.1.0+ . (LP: #686710) -- Bilal Akhtar Thu, 23 Dec 2010 12:56:00 +0300 gnome-media-player (0.1.3-0ubuntu3) maverick; urgency=low * Make proper directories up to the place where the apport hook should be placed, and hence fix FTBFS. -- Bilal Akhtar Sat, 18 Sep 2010 17:40:52 +0300 gnome-media-player (0.1.3-0ubuntu2) maverick; urgency=low * Add Apport package hook. (LP: #642050) * Bump Standards-Version to 3.9.1 . * Remove unnecessary debian-changes-0.1.3-0ubuntu1 patch, which accidentally got added in previous upload. -- Bilal Akhtar Sat, 18 Sep 2010 17:08:20 +0300 gnome-media-player (0.1.3-0ubuntu1) maverick; urgency=low [ Bilal Akhtar ] * New Upstream release (LP: #606870). * debian/patches/add-translation-support.patch: - This patch enables translation support in the application by setting the Gtk::Builder object translation domain to that of the application. * debian/patches/vlc-1.1.0-upgrade.patch: - This patch fixes FTBFS in maverick by making GNOME Media Player use libvlc 1.1.0, which is the version of VLC in maverick. * Removed unneeded build-dependency on libgstreamermm-0.10-dev. * Added build-dependency on libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev . * Bumped Standards-Version to 3.9.0 (no changes needed). [ Benjamin Drung ] * Switch from debhelper 5 to 7. * Replace cdbs by simple dh rule and drop build-dependency autotools-dev. * Add build-dependency intltool. * Remove COPYING and INSTALL from installation. -- Benjamin Drung Tue, 20 Jul 2010 10:27:12 +0200 gnome-media-player (0.1.2-0ubuntu1) maverick; urgency=low * Initial release (LP: #551702) -- Bilal Akhtar Mon, 03 May 2010 21:57:20 +0300 debian/apport_hook.py0000664000000000000000000000023511504606505012071 0ustar from apport.hookutils import * def add_info(report): report['GconfSettingsOfGMP'] = command_output(['gconftool-2', '-R', '/apps/gnome-media-player']) debian/patches/0000775000000000000000000000000011504616112010614 5ustar debian/patches/mouse-event-support.patch0000664000000000000000000000137711504616112015626 0ustar Description: Upstream patch to re-add mouse click support Author: Michael Lamothe Applied-Upstream: http://bazaar.launchpad.net/~lamothe/gnome-media-player/0.2-new/revision/112 --- a/src/vlc_engine.cc +++ b/src/vlc_engine.cc @@ -57,7 +57,7 @@ { g_debug("linear deinterlacer"); vlc_argv[i++] = "--vout-filter=deinterlace"; - vlc_argv[i++] = "--deinterlace-mode=linear"; + vlc_argv[i++] = "--deinterlace-mode=blend"; } else { @@ -65,8 +65,9 @@ } instance = libvlc_new (i, vlc_argv); - + media_player = libvlc_media_player_new(instance); + libvlc_video_set_mouse_input(media_player, false); libvlc_audio_set_volume(media_player, DEFAULT_VOLUME); event_manager = libvlc_media_player_event_manager(media_player); debian/patches/add-translation-support.patch0000664000000000000000000000132311504606505016437 0ustar Description: Patch to enable translation support This patch sets the translation domain in the Gtk::Builder object used in the file src/gnome-media-player.cc . This sets the application GUI to use the available translations. This patch has been forwarded upstream and has been accepted for the next upstream release. Author: Bilal Akhtar --- a/src/gnome-media-player.cc +++ b/src/gnome-media-player.cc @@ -264,7 +264,7 @@ { builder = Gtk::Builder::create_from_file(UI_FILE); ui_manager = Gtk::UIManager::create(); - + builder->set_translation_domain(GETTEXT_PACKAGE); Gtk::RadioButtonGroup engine_group; action_about = Gtk::Action::create("About", Gtk::Stock::ABOUT); debian/patches/vlc-1.1.0-upgrade.patch0000664000000000000000000001306211504606505014510 0ustar Description: Patch to make GNOME Media Player use vlc 1.1.0 This patch makes GNOME Media Player use VLC 1.1.0 to fix FTBFS in Maverick. Author: Bilal Akhtar --- a/src/vlc_engine.cc +++ b/src/vlc_engine.cc @@ -35,8 +35,6 @@ instance = NULL; media_player = NULL; - libvlc_exception_init (&exception); - int i = 0; const char * vlc_argv[50]; @@ -66,18 +64,13 @@ g_debug("Deinterlacer disabled"); } - instance = libvlc_new (i, vlc_argv, &exception); - check_exception("To use the VLC engine you must install VLC"); - - media_player = libvlc_media_player_new(instance, &exception); - check_exception(); + instance = libvlc_new (i, vlc_argv); - libvlc_audio_set_volume(instance, DEFAULT_VOLUME, &exception); - check_exception(); + media_player = libvlc_media_player_new(instance); + libvlc_audio_set_volume(media_player, DEFAULT_VOLUME); - event_manager = libvlc_media_player_event_manager(media_player, &exception); - libvlc_event_attach(event_manager, libvlc_MediaPlayerEndReached, end_reached_callback, NULL, &exception); - check_exception(); + event_manager = libvlc_media_player_event_manager(media_player); + libvlc_event_attach(event_manager, libvlc_MediaPlayerEndReached, end_reached_callback, NULL); g_message("VLC engine created"); } @@ -103,30 +96,9 @@ g_debug("VLC engine destroyed"); } -void VlcEngine::check_exception(const Glib::ustring& message) -{ - if (libvlc_exception_raised(&exception)) - { - Glib::ustring text; - Glib::ustring exception_message = libvlc_exception_get_message(&exception); - - if (message.empty()) - { - text = exception_message; - } - else - { - text = Glib::ustring::compose("%1: %2", message, exception_message); - } - - throw Exception(text); - } -} - void VlcEngine::set_window(int window) { - libvlc_media_player_set_xwindow(media_player, window, &exception); - check_exception(); + libvlc_media_player_set_xwindow(media_player, window); } void VlcEngine::pause(gboolean state) @@ -135,13 +107,12 @@ { if (state) { - libvlc_media_player_pause(media_player, &exception); + libvlc_media_player_pause(media_player); } else { - libvlc_media_player_play(media_player, &exception); + libvlc_media_player_play(media_player); } - check_exception(); } } @@ -149,8 +120,7 @@ { if (has_media()) { - libvlc_media_player_play(media_player, &exception); - check_exception(); + libvlc_media_player_play(media_player); } } @@ -158,17 +128,10 @@ { if (has_media()) { - libvlc_media_t* media = libvlc_media_player_get_media(media_player, &exception); - check_exception(); - - libvlc_media_player_stop(media_player, &exception); - check_exception(); - - libvlc_media_player_set_media(media_player, NULL, &exception); - check_exception(); - + libvlc_media_t* media = libvlc_media_player_get_media(media_player); + libvlc_media_player_stop(media_player); + libvlc_media_player_set_media(media_player, NULL); libvlc_media_release(media); - check_exception(); } } @@ -181,12 +144,8 @@ stop(); - libvlc_media_t* media = libvlc_media_new(instance, mrl.c_str(), &exception); - check_exception(); - - libvlc_media_player_set_media(media_player, media, &exception); - check_exception(); - + libvlc_media_t* media = libvlc_media_new_path(instance, mrl.c_str()); + libvlc_media_player_set_media(media_player, media); libvlc_media_release(media); } @@ -206,16 +165,14 @@ } else { - libvlc_media_player_set_time(media_player, new_time, &exception); - check_exception(); + libvlc_media_player_set_time(media_player, new_time); } } } bool VlcEngine::has_media() { - libvlc_media_t* media = libvlc_media_player_get_media(media_player, &exception); - check_exception(); + libvlc_media_t* media = libvlc_media_player_get_media(media_player); return media != NULL; } @@ -225,11 +182,10 @@ if (has_media()) { - result = libvlc_media_player_get_time(media_player, &exception); - check_exception(); + result = libvlc_media_player_get_time(media_player); } - return result; + return result; } int VlcEngine::get_length() @@ -238,11 +194,10 @@ if (has_media()) { - result = libvlc_media_player_get_length(media_player, &exception); - check_exception(); + result = libvlc_media_player_get_length(media_player); } - return result; + return result; } float VlcEngine::get_percentage() @@ -251,8 +206,7 @@ if (has_media()) { - result = libvlc_media_player_get_position(media_player, &exception); - check_exception(); + result = libvlc_media_player_get_position(media_player); } return result; @@ -262,30 +216,19 @@ { if (has_media()) { - libvlc_media_player_set_position(media_player, percentage, &exception); - check_exception(); + libvlc_media_player_set_position(media_player, percentage); } } void VlcEngine::set_volume(double value) { -if (has_media()) -{ -libvlc_audio_set_volume(instance, value, &exception); -check_exception(); -} + if (has_media()) + { + libvlc_audio_set_volume(media_player, value); + } } double VlcEngine::get_volume() { -if (has_media()) -{ -int returnn=libvlc_audio_get_volume(instance,&exception); -check_exception(); -return returnn; -} -else -{ -return 0; -} + return has_media() ? libvlc_audio_get_volume(media_player) : 0; } --- a/src/vlc_engine.h +++ b/src/vlc_engine.h @@ -28,11 +28,8 @@ private: libvlc_instance_t* instance; libvlc_media_player_t* media_player; - libvlc_exception_t exception; libvlc_event_manager_t* event_manager; - void check_exception(const Glib::ustring& message = ""); - public: VlcEngine(bool use_ffmpeg_demux = false); ~VlcEngine(); debian/patches/series0000664000000000000000000000012011504614027012025 0ustar add-translation-support.patch vlc-1.1.0-upgrade.patch mouse-event-support.patch debian/watch0000664000000000000000000000014611504606505010224 0ustar version=3 https://launchpad.net/gnome-media-player/+download .*/gnome-media-player-([0-9.]+)\.tar\.gz debian/control0000664000000000000000000000321612277427607010613 0ustar Source: gnome-media-player Section: video Priority: optional Maintainer: Bilal Akhtar Build-Depends: debhelper (>= 7.0.50~), intltool (>= 0.35), libdbus-1-dev, libdbus-glib-1-dev, libgstreamer0.10-dev, libgstreamer-plugins-base0.10-dev, libgconf2-dev, libgtkmm-2.4-dev, libsigc++-2.0-dev, libunique-dev, libvlc-dev, libxine-dev, autotools-dev, pkg-config Standards-Version: 3.9.1 Homepage: https://launchpad.net/gnome-media-player Vcs-Git: git://github.com/bilalakhtar/gnome-media-player-ubuntu.git Vcs-Browser: https://github.com/bilalakhtar/gnome-media-player-ubuntu Package: gnome-media-player Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libxine1-ffmpeg Suggests: vlc Description: A simple media player for GNOME This media player supports the vlc, xine and GStreamer engines for playing media. Since some file formats play well only on a certain engine, this media player was made with 3 engines, so that the user can select the required engine required for playing a particular file type. It also has an engine auto select mode, in which the player automatically selects the best engine for the particular type of file being played. . GNOME Media Player: * has a GNOME/GTK interface * does double-click fullscreen * can use the mouse scroll wheel * uses libvlc, xine-lib or libgstreamer * a playlist that loops * middle mouse button pause * can deinterlace (not available on the libgstreamer engine) debian/source/0000775000000000000000000000000011504606505010472 5ustar debian/source/format0000664000000000000000000000001411504606505011700 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211504606505010370 0ustar 7 debian/rules0000775000000000000000000000066312277427620010266 0ustar #!/usr/bin/make -f %: dh $@ --with autotools-dev override_dh_auto_test: override_dh_auto_install: dh_auto_install rm debian/gnome-media-player/usr/share/doc/gnome-media-player/COPYING rm debian/gnome-media-player/usr/share/doc/gnome-media-player/INSTALL mkdir -p debian/gnome-media-player/usr/share/apport/package-hooks/ cp debian/apport_hook.py debian/gnome-media-player/usr/share/apport/package-hooks/gnome-media-player.py