GNOME Bugzilla – Bug 778379
gstplayer: Add gst_player_get_state API
Last modified: 2018-11-03 14:04:34 UTC
For gstpalyer state, currently we can only get the state by state_change callback, when mainloop start running. However, if we need to get the current state when mainloop has not started running. There is no way to get the gstplayer state. So considering add this gst_player_get_state() API to get the current player state.
Created attachment 345291 [details] [review] patch for add gst_player_get_state() API
Review of attachment 345291 [details] [review]: Generally looks good ::: gst-libs/gst/player/gstplayer.c @@ +4363,3 @@ + * + * Gets current GstPlayer state. + * This needs some further documentation though. It's not guaranteed that the state returned is the current state, it might've changed in the meantime already. Can you add something about that?
Created attachment 345304 [details] [review] Update patch for add get_state API Update the function description
Hi slomo: Could you please help review the new patch? Could it be accepted? Thanks Lyon
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/519.