diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2017-12-19 22:57:48 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2017-12-23 22:15:42 +0100 |
commit | 5faa79028eead21680d490a1b589a3875f966e0e (patch) | |
tree | 912457d1a781fb31e7d4f62c0613bcb178bf9af7 /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch | |
parent | 46e0ede0d617b28dd37f0e4e868476db1282126f (diff) |
imx-gst1.0-plugin: Add v4.3.1 and NXP specific gstreamer1.0 patches
Add NXP specific patches from morty-4.9.51-mx8_beta branch. This
allows to use imx-gst1.0-plugin 4.3.1 with gstreamer 1.12.2.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch')
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch new file mode 100644 index 0000000..da6f878 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0015-gstplayer-Add-gst_player_get_state-API.patch @@ -0,0 +1,63 @@ +From 6e74c8bb4c93f07a83b6e79acfcef467e735abc5 Mon Sep 17 00:00:00 2001 +From: Lyon Wang <lyon.wang@nxp.com> +Date: Fri, 17 Feb 2017 17:22:31 +0800 +Subject: [PATCH 15/26] gstplayer: Add gst_player_get_state() API + +- Add gst_player_get_state() API + +https://bugzilla.gnome.org/show_bug.cgi?id=778379 +Upstream-Status: Submitted + +Signed-off-by: Lyon Wang <lyon.wang@nxp.com> + +Conflicts: + gst-libs/gst/player/gstplayer.c +--- + gst-libs/gst/player/gstplayer.c | 20 ++++++++++++++++++++ + gst-libs/gst/player/gstplayer.h | 2 ++ + 2 files changed, 22 insertions(+) + +diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c +index 92ad919..ebad94e 100644 +--- a/gst-libs/gst/player/gstplayer.c ++++ b/gst-libs/gst/player/gstplayer.c +@@ -5042,3 +5042,23 @@ gst_player_get_text_sink (GstPlayer * self) + + return actual_sink; + } ++ ++/** ++ * gst_player_get_state: ++ * @player: #GstPlayer instance ++ * ++ * Gets internal GstPlayer state. ++ * It's not guaranteed that the state returned is the current state, ++ * it might've changed in the meantime. ++ * ++ * Returns: (transfer none): internal GstPlayerState ++ * ++ * Since 1.12 ++ */ ++GstPlayerState ++gst_player_get_state (GstPlayer * self) ++{ ++ g_return_val_if_fail (GST_IS_PLAYER (self), GST_PLAYER_STATE_STOPPED); ++ ++ return self->app_state; ++} +diff --git a/gst-libs/gst/player/gstplayer.h b/gst-libs/gst/player/gstplayer.h +index f444918..5ee3592 100644 +--- a/gst-libs/gst/player/gstplayer.h ++++ b/gst-libs/gst/player/gstplayer.h +@@ -228,6 +228,8 @@ gboolean gst_player_set_text_sink (GstPlayer * player, GstElement * text_sink + GstElement * gst_player_get_audio_sink (GstPlayer * player); + GstElement * gst_player_get_text_sink (GstPlayer * player); + ++GstPlayerState gst_player_get_state (GstPlayer * player); ++ + G_END_DECLS + + #endif /* __GST_PLAYER_H__ */ +-- +1.9.1 + |