summaryrefslogtreecommitdiff
path: root/src/libspucmml/xine_decoder.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-18 20:29:03 +0000
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2006-06-18 20:29:03 +0000
commit800eff24a20af48b2f5109a0bf9f1da4bf2a2c14 (patch)
treea3dc27ec7b81d7f513e946803493ee4827bd1c5b /src/libspucmml/xine_decoder.c
parent17e6b5f782e42b8a2477537436f49bc0040ce969 (diff)
downloadxine-lib-800eff24a20af48b2f5109a0bf9f1da4bf2a2c14.tar.gz
xine-lib-800eff24a20af48b2f5109a0bf9f1da4bf2a2c14.tar.bz2
Misc warnings fixes.
CVS patchset: 8055 CVS date: 2006/06/18 20:29:03
Diffstat (limited to 'src/libspucmml/xine_decoder.c')
-rw-r--r--src/libspucmml/xine_decoder.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libspucmml/xine_decoder.c b/src/libspucmml/xine_decoder.c
index 075a60181..4ff5bc52d 100644
--- a/src/libspucmml/xine_decoder.c
+++ b/src/libspucmml/xine_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: xine_decoder.c,v 1.6 2006/06/02 22:18:58 dsalt Exp $
+ * $Id: xine_decoder.c,v 1.7 2006/06/18 20:29:04 dgp85 Exp $
*
*/
@@ -140,7 +140,8 @@ static void update_font_size (spucmml_decoder_t *this) {
}
static int get_width(spucmml_decoder_t *this, char* text) {
- int i=0,width=0,w,dummy;
+ size_t i=0;
+ int width=0,w,dummy;
char letter[2]={0, 0};
while (i<=strlen(text)) {
@@ -187,7 +188,8 @@ static int get_width(spucmml_decoder_t *this, char* text) {
}
static void render_line(spucmml_decoder_t *this, int x, int y, char* text) {
- int i=0,w,dummy;
+ size_t i=0;
+ int w,dummy;
char letter[2]={0,0};
while (i<=strlen(text)) {
@@ -235,7 +237,7 @@ static void draw_subtitle(spucmml_decoder_t *this, int64_t sub_start) {
this->stream->osd_renderer->show (this->osd, sub_start);
llprintf (LOG_SCHEDULING,
- "spucmml: scheduling subtitle >%s< at %lld, current time is %lld\n",
+ "spucmml: scheduling subtitle >%s< at %"PRId64", current time is %"PRId64"\n",
this->text[0], sub_start,
this->stream->xine->clock->get_current_time (this->stream->xine->clock));
}