pngdec: Actually use the stop() vfunc implementation

This commit is contained in:
Sebastian Dröge 2012-11-12 10:44:01 +01:00
parent dc5db0e980
commit 63fd591044

View file

@ -85,6 +85,7 @@ gst_pngdec_class_init (GstPngDecClass * klass)
"Wim Taymans <wim@fluendo.com>");
vdec_class->start = gst_pngdec_start;
vdec_class->stop = gst_pngdec_stop;
vdec_class->reset = gst_pngdec_reset;
vdec_class->set_format = gst_pngdec_set_format;
vdec_class->handle_frame = gst_pngdec_handle_frame;
@ -524,8 +525,8 @@ gst_pngdec_stop (GstVideoDecoder * decoder)
static gboolean
gst_pngdec_reset (GstVideoDecoder * decoder, gboolean hard)
{
gst_pngdec_libpng_clear (decoder);
gst_pngdec_libpng_init (decoder);
gst_pngdec_libpng_clear ((GstPngDec *) decoder);
gst_pngdec_libpng_init ((GstPngDec *) decoder);
return TRUE;
}