mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
androidmedia: Flush the queue when the source is stopped
This commit is contained in:
parent
dd27b89e95
commit
0083adbbed
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue