GNOME Bugzilla – Bug 730109
media: Make suspend()/unsuspend() virtual
Last modified: 2014-05-15 13:46:34 UTC
Created attachment 276512 [details] [review] media: Make suspend()/unsuspend() virtual This is a patch which makes media_suspend() and media_unsuspend() virtual. Please advise if this patch is acceptable. The use case i am trying to solve: Checking for hardware resources plus enabling and configuring hardware whenever live medias are about to be prerolled. Reverse operation is done when pipeline is set to state GST_STATE_NULL. 503 SERVICE_UNAVAILABLE should be returned on failure. The idea is to enable hardware from media_preroll(already virtual) and media_unsuspend and disable it from media_unpreroll(already virtual) and media_suspend. Currently i am doing this from the media::target_state signal handler but it is not perfect since i am not able to return error.
commit 0fb7922e9bcb6485fa5404412846685cae216e3a Author: Ognyan Tonchev <ognyan@axis.com> Date: Wed May 14 09:31:31 2014 +0200 media: Make suspend()/unsuspend() virtual Fixes https://bugzilla.gnome.org/show_bug.cgi?id=730109