mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
vaapidecode: remove vmethod reset()
Since in bug #745728 the support for GStreamer 1.0 is going to be dropped, this patch removes the method reset() which was deprecated in GStreamer 1.2. https://bugzilla.gnome.org/show_bug.cgi?id=742922 Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
parent
1bd810fe99
commit
49606b8d25
1 changed files with 0 additions and 17 deletions
|
@ -736,7 +736,6 @@ gst_vaapidecode_close (GstVideoDecoder * vdec)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#if GST_CHECK_VERSION(1,2,0)
|
||||
static gboolean
|
||||
gst_vaapidecode_flush (GstVideoDecoder * vdec)
|
||||
{
|
||||
|
@ -749,18 +748,6 @@ gst_vaapidecode_flush (GstVideoDecoder * vdec)
|
|||
* seeking: we have to reset the internal state */
|
||||
return gst_vaapidecode_reset_full (decode, decode->sinkpad_caps, TRUE);
|
||||
}
|
||||
#else
|
||||
static gboolean
|
||||
gst_vaapidecode_reset (GstVideoDecoder * vdec, gboolean hard)
|
||||
{
|
||||
GstVaapiDecode *const decode = GST_VAAPIDECODE (vdec);
|
||||
|
||||
/* In GStreamer 1.0 context, this means a flush */
|
||||
if (decode->decoder && !hard && !gst_vaapidecode_internal_flush (vdec))
|
||||
return FALSE;
|
||||
return gst_vaapidecode_reset_full (decode, decode->sinkpad_caps, hard);
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
gst_vaapidecode_set_format (GstVideoDecoder * vdec, GstVideoCodecState * state)
|
||||
|
@ -854,11 +841,7 @@ gst_vaapidecode_class_init (GstVaapiDecodeClass * klass)
|
|||
vdec_class->open = GST_DEBUG_FUNCPTR (gst_vaapidecode_open);
|
||||
vdec_class->close = GST_DEBUG_FUNCPTR (gst_vaapidecode_close);
|
||||
vdec_class->set_format = GST_DEBUG_FUNCPTR (gst_vaapidecode_set_format);
|
||||
#if GST_CHECK_VERSION(1,2,0)
|
||||
vdec_class->flush = GST_DEBUG_FUNCPTR (gst_vaapidecode_flush);
|
||||
#else
|
||||
vdec_class->reset = GST_DEBUG_FUNCPTR (gst_vaapidecode_reset);
|
||||
#endif
|
||||
vdec_class->parse = GST_DEBUG_FUNCPTR (gst_vaapidecode_parse);
|
||||
vdec_class->handle_frame = GST_DEBUG_FUNCPTR (gst_vaapidecode_handle_frame);
|
||||
vdec_class->finish = GST_DEBUG_FUNCPTR (gst_vaapidecode_finish);
|
||||
|
|
Loading…
Reference in a new issue