vp8enc, vp9enc: reset multipass file index when stopping encoder

Fixes multipass encoding when re-using the same element/pipeline
for subsequent encoding runs.

https://bugzilla.gnome.org/show_bug.cgi?id=747728
This commit is contained in:
Tim-Philipp Müller 2015-08-15 11:12:05 +01:00
parent 0e10e92953
commit 98527a6ea2
2 changed files with 8 additions and 0 deletions

View file

@ -1461,6 +1461,10 @@ gst_vp8_enc_stop (GstVideoEncoder * video_encoder)
gst_tag_setter_reset_tags (GST_TAG_SETTER (encoder));
g_free (encoder->multipass_cache_file);
encoder->multipass_cache_file = NULL;
encoder->multipass_cache_idx = 0;
return TRUE;
}

View file

@ -1434,6 +1434,10 @@ gst_vp9_enc_stop (GstVideoEncoder * video_encoder)
gst_tag_setter_reset_tags (GST_TAG_SETTER (encoder));
g_free (encoder->multipass_cache_file);
encoder->multipass_cache_file = NULL;
encoder->multipass_cache_idx = 0;
return TRUE;
}