diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/annodex/gstcmmldec.c | 9 | ||||
-rw-r--r-- | ext/annodex/gstcmmlenc.h | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ext/annodex/gstcmmldec.c b/ext/annodex/gstcmmldec.c index b3884880..75038c61 100644 --- a/ext/annodex/gstcmmldec.c +++ b/ext/annodex/gstcmmldec.c @@ -391,10 +391,15 @@ gst_cmml_dec_chain (GstPad * pad, GstBuffer * buffer) /* handle the packet. the handler will set dec->flow_return */ switch (packet) { case GST_CMML_PACKET_IDENT_HEADER: - gst_cmml_dec_parse_ident_header (dec, buffer); + if (dec->sent_root == FALSE) + /* don't parse the ident again in case of seeking to the beginning */ + gst_cmml_dec_parse_ident_header (dec, buffer); break; case GST_CMML_PACKET_FIRST_HEADER: - gst_cmml_dec_parse_first_header (dec, buffer); + if (dec->sent_root == FALSE) + /* don't parse the xml preamble if it has already been parsed because it + * would error out, so seeking to the beginning would fail */ + gst_cmml_dec_parse_first_header (dec, buffer); break; case GST_CMML_PACKET_SECOND_HEADER: case GST_CMML_PACKET_CLIP: diff --git a/ext/annodex/gstcmmlenc.h b/ext/annodex/gstcmmlenc.h index d8e07ed2..1c037421 100644 --- a/ext/annodex/gstcmmlenc.h +++ b/ext/annodex/gstcmmlenc.h @@ -3,7 +3,7 @@ * Copyright (C) 2005 Alessandro Decina * * Authors: - * Alessandro Encina <alessandro@nnva.org> + * Alessandro Decina <alessandro@nnva.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public |