diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-15 15:46:58 +0200 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2013-08-15 15:46:58 +0200 |
commit | 2e8af6973fb2cf9c239305d56b3a290fcaa93216 (patch) | |
tree | 4185463b202c8cd23b0e9549dd458fa2bf908fab /sys/androidmedia/gstamcvideodec.c | |
parent | d0ab9172c57379263c019bb4ae835de71e690038 (diff) | |
download | gstreamer-plugins-bad-2e8af6973fb2cf9c239305d56b3a290fcaa93216.tar.gz |
ext: Use new flush vfunc of video codec base classes and remove reset implementations
Diffstat (limited to 'sys/androidmedia/gstamcvideodec.c')
-rw-r--r-- | sys/androidmedia/gstamcvideodec.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index d99132a92..735ac3372 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -79,8 +79,7 @@ static gboolean gst_amc_video_dec_start (GstVideoDecoder * decoder); static gboolean gst_amc_video_dec_stop (GstVideoDecoder * decoder); static gboolean gst_amc_video_dec_set_format (GstVideoDecoder * decoder, GstVideoCodecState * state); -static gboolean gst_amc_video_dec_reset (GstVideoDecoder * decoder, - gboolean hard); +static gboolean gst_amc_video_dec_flush (GstVideoDecoder * decoder); static GstFlowReturn gst_amc_video_dec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame); static GstFlowReturn gst_amc_video_dec_finish (GstVideoDecoder * decoder); @@ -478,7 +477,7 @@ gst_amc_video_dec_class_init (GstAmcVideoDecClass * klass) videodec_class->stop = GST_DEBUG_FUNCPTR (gst_amc_video_dec_stop); videodec_class->open = GST_DEBUG_FUNCPTR (gst_amc_video_dec_open); videodec_class->close = GST_DEBUG_FUNCPTR (gst_amc_video_dec_close); - videodec_class->reset = GST_DEBUG_FUNCPTR (gst_amc_video_dec_reset); + videodec_class->flush = GST_DEBUG_FUNCPTR (gst_amc_video_dec_flush); videodec_class->set_format = GST_DEBUG_FUNCPTR (gst_amc_video_dec_set_format); videodec_class->handle_frame = GST_DEBUG_FUNCPTR (gst_amc_video_dec_handle_frame); @@ -1444,13 +1443,13 @@ gst_amc_video_dec_set_format (GstVideoDecoder * decoder, } static gboolean -gst_amc_video_dec_reset (GstVideoDecoder * decoder, gboolean hard) +gst_amc_video_dec_flush (GstVideoDecoder * decoder) { GstAmcVideoDec *self; self = GST_AMC_VIDEO_DEC (decoder); - GST_DEBUG_OBJECT (self, "Resetting decoder"); + GST_DEBUG_OBJECT (self, "Flushing decoder"); if (!self->started) { GST_DEBUG_OBJECT (self, "Codec not started yet"); @@ -1476,7 +1475,7 @@ gst_amc_video_dec_reset (GstVideoDecoder * decoder, gboolean hard) gst_pad_start_task (GST_VIDEO_DECODER_SRC_PAD (self), (GstTaskFunction) gst_amc_video_dec_loop, decoder, NULL); - GST_DEBUG_OBJECT (self, "Reset decoder"); + GST_DEBUG_OBJECT (self, "Flushed decoder"); return TRUE; } |