When has the autovideosink sink choice become final: READY or PAUSED?

I need to detect if the videosink chosen by autovideosink is one of the X11 sinks (xvimagesink or ximagesink) or not.

I can detect the bus messages GST_MESSAGE_STATE_CHANGED from GST_MESSAGE_SRC = “autovideosink0-actual-sink-xvimage” (or presumably, “autovideosink0-actual-sink-ximage”, if ximagesink is selected) from NULL to READY to PAUSED to PLAYING.

  • can I assume that autovideosink0-actual-sink-XXXX changed from NULL to READY means that XXXXsink has definitively been selected, or must I wait till the state is PAUSED?