mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
basevideodecoder: First inform subclass about resetting before resetting/freeing all internal state
The subclass might want to access the old state.
This commit is contained in:
parent
a59246c1d1
commit
83c4e8814e
1 changed files with 5 additions and 5 deletions
|
@ -359,6 +359,11 @@ gst_base_video_decoder_flush (GstBaseVideoDecoder * dec, gboolean hard)
|
|||
|
||||
GST_LOG_OBJECT (dec, "flush hard %d", hard);
|
||||
|
||||
/* Inform subclass */
|
||||
/* FIXME ? only if hard, or tell it if hard ? */
|
||||
if (klass->reset)
|
||||
klass->reset (dec);
|
||||
|
||||
/* FIXME make some more distinction between hard and soft,
|
||||
* but subclass may not be prepared for that */
|
||||
/* FIXME perhaps also clear pending frames ?,
|
||||
|
@ -377,11 +382,6 @@ gst_base_video_decoder_flush (GstBaseVideoDecoder * dec, gboolean hard)
|
|||
/* and get (re)set for the sequel */
|
||||
gst_base_video_decoder_reset (dec, FALSE);
|
||||
|
||||
/* also inform subclass */
|
||||
/* FIXME ? only if hard, or tell it if hard ? */
|
||||
if (klass->reset)
|
||||
klass->reset (dec);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue