Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/e/deepin-music-player-HEAD/src/player/fadebin.py   deepin-music-player(Download)
        self.__tee.link(bin)
        if blocked:
            bin.set_state(gst.STATE_PLAYING)
            self.__output.set_state(gst.STATE_PLAYING)
            self.logdebug("tee_pad -> unblock stream cb:pipeline_op_done state:%s", self.sink_state)
            pad.set_blocked_async(False, self.__pipeline_op_done, ghostpad, "tee-inserted", self.__tee, element)
        else:
            bin.set_state(gst.STATE_PAUSED)
 
        if blocked:
            bin.set_state(gst.STATE_PLAYING)
            self.logdebug("filter_pad -> unblock stream cb:pipeline_op_done state:%s", self.sink_state)
            pad.set_blocked_async(False, self.__pipeline_op_done, None, "filter-inserted", self.__filterbin, element)
        else:
            bin.set_state(gst.STATE_PAUSED)

src/d/a/dacapo-0.1.9.f/dacapo/dacapoGST.py   dacapo(Download)
 
	    # Test to ensure output pipeline can preroll
	    bufbin.set_state(gst.STATE_READY)
	    result, state, pending = bufbin.get_state(timeout=gst.SECOND/2)
	    if result == gst.STATE_CHANGE_FAILURE:
		    bufbin.set_state(gst.STATE_NULL)