basecamerasrc: document why we set preview to PLAYING

This commit is contained in:
Raluca Elena Podiuc 2011-07-26 05:43:34 +03:00 committed by Thiago Santos
parent 5aa37ebdc8
commit 2d17cd3350

View file

@ -476,6 +476,8 @@ gst_base_camera_src_change_state (GstElement * element,
case GST_STATE_CHANGE_READY_TO_PAUSED:
if (!setup_pipeline (self))
return GST_STATE_CHANGE_FAILURE;
/* without this the preview pipeline will not post buffer
* messages on the pipeline */
gst_element_set_state (self->preview_pipeline->pipeline,
GST_STATE_PLAYING);
break;