androidmedia: Flush the queue when the source is stopped

This commit is contained in:
Youness Alaoui 2012-10-23 11:14:00 -04:00 committed by Nicolas Dufresne
parent dd27b89e95
commit 0083adbbed

View file

@ -443,10 +443,11 @@ gst_ahc_src_stop (GstBaseSrc * bsrc)
GstAHCSrc *self = GST_AHC_SRC (bsrc);
GST_WARNING_OBJECT (self, "Stopping preview");
if (self->camera)
if (self->camera) {
gst_data_queue_flush (self->queue);
return gst_ah_camera_stop_preview (self->camera);
else
return TRUE;
}
return TRUE;
}
static gboolean