gst_element_set_state (pipeline, GST_STATE_PAUSED); gst_photography_set_autofocus(GST_PHOTOGRAPHY(camera_src), true); gst_element_set_state (pipeline, GST_STATE_PLAYING);