summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-10-22 13:03:12 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2010-10-22 13:05:16 +0200
commitd82633c4e30bc3312c600e43422bb1c7730e6437 (patch)
tree3df957f0015c9fffb26d18cdacf736751c8a1495
parentcc2a6e493bdc93cb23e71a5d519087aa4a648357 (diff)
ffdec: don't destroy the parser state
When we flush the parser cache, we only need to clear the bytes of the cache, not the complete state of the cache. In the case of H264 this doesn't require the parser to receive a new SPS/PPS after a DISCONT buffer.
-rw-r--r--ext/ffmpeg/gstffmpegdec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index b959598..b09b12e 100644
--- a/ext/ffmpeg/gstffmpegdec.c
+++ b/ext/ffmpeg/gstffmpegdec.c
@@ -2285,14 +2285,6 @@ gst_ffmpegdec_flush_pcache (GstFFMpegDec * ffmpegdec)
gst_buffer_unref (ffmpegdec->pcache);
ffmpegdec->pcache = NULL;
}
- if (ffmpegdec->pctx) {
- GstFFMpegDecClass *oclass;
-
- oclass = (GstFFMpegDecClass *) (G_OBJECT_GET_CLASS (ffmpegdec));
-
- av_parser_close (ffmpegdec->pctx);
- ffmpegdec->pctx = av_parser_init (oclass->in_plugin->id);
- }
}
static gboolean