diff options
author | Maxin B. John <maxin.john@intel.com> | 2016-08-08 14:13:06 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-10 10:46:32 +0100 |
commit | 2be5ee7e0a70f4dd955c14d0385ed1ddd6e96d63 (patch) | |
tree | 9d45a12e6af2f61c2abcb8f991295370694031eb | |
parent | aca6dae9dcdde59c3aeb0a9afd1a9538f1288e3a (diff) | |
download | poky-2be5ee7e0a70f4dd955c14d0385ed1ddd6e96d63.tar.gz |
gst-player: update the callback for delete-event
provide similar behaviour for Media Player's quit and close callback
functions.
[YOCTO #10045]
(From OE-Core rev: 5cf3ae34df0a39deead8b029353b41a60e48c24a)
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-provide-similar-behaviour-for-quit-and-clos.patch | 32 | ||||
-rw-r--r-- | meta/recipes-multimedia/gstreamer/gst-player_git.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-provide-similar-behaviour-for-quit-and-clos.patch b/meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-provide-similar-behaviour-for-quit-and-clos.patch new file mode 100644 index 0000000000..e3f1c4f749 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gst-player/0001-gtk-play-provide-similar-behaviour-for-quit-and-clos.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 220c2659a45dd354270a465c45197970dae5f548 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Maxin B. John" <maxin.john@intel.com> | ||
3 | Date: Fri, 5 Aug 2016 17:52:18 +0300 | ||
4 | Subject: [PATCH] gtk-play: provide similar behaviour for quit and close | ||
5 | |||
6 | In x86 targets, gtk-play just pause rather than quitting the application | ||
7 | when we click the close button (delete-event). Change the callback function | ||
8 | to get similar behaviour when we click on "Quit" menu option. | ||
9 | |||
10 | Upstream-Status: Accepted | ||
11 | |||
12 | Signed-off-by: Maxin B. John <maxin.john@intel.com> | ||
13 | --- | ||
14 | gtk/gtk-play.c | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/gtk/gtk-play.c b/gtk/gtk-play.c | ||
18 | index a520bef..16afc6b 100644 | ||
19 | --- a/gtk/gtk-play.c | ||
20 | +++ b/gtk/gtk-play.c | ||
21 | @@ -177,7 +177,7 @@ load_from_builder (const gchar * filename, gboolean register_sig_handler, | ||
22 | static void | ||
23 | delete_event_cb (GtkWidget * widget, GdkEvent * event, GtkPlay * play) | ||
24 | { | ||
25 | - gst_player_stop (play->player); | ||
26 | + gtk_widget_destroy (GTK_WIDGET (play)); | ||
27 | } | ||
28 | |||
29 | static void | ||
30 | -- | ||
31 | 2.4.0 | ||
32 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gst-player_git.bb b/meta/recipes-multimedia/gstreamer/gst-player_git.bb index b09244b2ee..00ad9416f7 100644 --- a/meta/recipes-multimedia/gstreamer/gst-player_git.bb +++ b/meta/recipes-multimedia/gstreamer/gst-player_git.bb | |||
@@ -8,6 +8,7 @@ SRC_URI = "git://github.com/sdroege/gst-player.git \ | |||
8 | file://filechooser.patch;apply=0 \ | 8 | file://filechooser.patch;apply=0 \ |
9 | file://Fix-pause-play.patch;apply=0 \ | 9 | file://Fix-pause-play.patch;apply=0 \ |
10 | file://Add-error-signal-emission-for-missing-plugins.patch;apply=0 \ | 10 | file://Add-error-signal-emission-for-missing-plugins.patch;apply=0 \ |
11 | file://0001-gtk-play-provide-similar-behaviour-for-quit-and-clos.patch \ | ||
11 | file://gst-player.desktop" | 12 | file://gst-player.desktop" |
12 | 13 | ||
13 | SRCREV = "ea90e63c1064503f9ba5d59aa4ca604f13ca5def" | 14 | SRCREV = "ea90e63c1064503f9ba5d59aa4ca604f13ca5def" |