summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2004-05-24 19:43:47 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2004-05-24 19:43:47 +0000
commit0aca7cd9825c2df73aa68f8d6aa6e411667672b9 (patch)
treee8479aa2bb69768f40bb4676bae14daf97756391
parentb7a84a23a7c682fa8fb4a6a7cfc0f3394be4c331 (diff)
downloadxine-lib-0aca7cd9825c2df73aa68f8d6aa6e411667672b9.tar.gz
xine-lib-0aca7cd9825c2df73aa68f8d6aa6e411667672b9.tar.bz2
Reset support.
Pass the seeking stress test now ;) CVS patchset: 6586 CVS date: 2004/05/24 19:43:47
-rw-r--r--src/libw32dll/qt_decoder.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libw32dll/qt_decoder.c b/src/libw32dll/qt_decoder.c
index 8818f5702..e58d4e233 100644
--- a/src/libw32dll/qt_decoder.c
+++ b/src/libw32dll/qt_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: qt_decoder.c,v 1.35 2004/04/26 17:50:08 mroi Exp $
+ * $Id: qt_decoder.c,v 1.36 2004/05/24 19:43:47 tmattern Exp $
*
* quicktime video/audio decoder plugin, using win32 dlls
* most of this code comes directly from MPlayer
@@ -530,6 +530,9 @@ static void qta_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
}
static void qta_reset (audio_decoder_t *this_gen) {
+ qta_decoder_t *this = (qta_decoder_t *) this_gen;
+
+ this->data_len = 0;
}
@@ -1054,8 +1057,9 @@ static void qtv_flush (video_decoder_t *this_gen) {
}
static void qtv_reset (video_decoder_t *this_gen) {
- /* qtv_decoder_t *this = (qtv_decoder_t *) this_gen; */
-
+ qtv_decoder_t *this = (qtv_decoder_t *) this_gen;
+
+ this->data_len = 0;
}
static void qtv_discontinuity (video_decoder_t *this_gen) {
@@ -1173,4 +1177,3 @@ plugin_info_t xine_plugin_info[] = {
{ PLUGIN_AUDIO_DECODER | PLUGIN_MUST_PRELOAD, 15, "qta", XINE_VERSION_CODE, &qta_dec_info, qta_init_class },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};
-