mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-13 03:38:55 +00:00
androidmedia: Do not flush codec if it is not started
This commit is contained in:
parent
6ca0be038a
commit
45e287840d
1 changed files with 5 additions and 3 deletions
|
@ -339,9 +339,11 @@ gst_amc_video_dec_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
self->flushing = TRUE;
|
||||
gst_amc_codec_flush (self->codec, &err);
|
||||
if (err)
|
||||
GST_ELEMENT_WARNING_FROM_ERROR (self, err);
|
||||
if (self->started) {
|
||||
gst_amc_codec_flush (self->codec, &err);
|
||||
if (err)
|
||||
GST_ELEMENT_WARNING_FROM_ERROR (self, err);
|
||||
}
|
||||
g_mutex_lock (&self->drain_lock);
|
||||
self->draining = FALSE;
|
||||
g_cond_broadcast (&self->drain_cond);
|
||||
|
|
Loading…
Reference in a new issue