mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 19:18:31 +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,9 +443,10 @@ gst_ahc_src_stop (GstBaseSrc * bsrc)
|
||||||
GstAHCSrc *self = GST_AHC_SRC (bsrc);
|
GstAHCSrc *self = GST_AHC_SRC (bsrc);
|
||||||
|
|
||||||
GST_WARNING_OBJECT (self, "Stopping preview");
|
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);
|
return gst_ah_camera_stop_preview (self->camera);
|
||||||
else
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue