gst/realmedia/: Fix some compiler warnings shown on Forte.
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 8 Oct 2007 17:51:33 +0000 (17:51 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 8 Oct 2007 17:51:33 +0000 (17:51 +0000)
Original commit message from CVS:
* gst/realmedia/asmrules.c: (gst_asm_scan_parse_expression),
(gst_asm_scan_parse_condition):
* gst/realmedia/rmdemux.c: (gst_rmdemux_parse_video_packet):
Fix some compiler warnings shown on Forte.

ChangeLog
gst/realmedia/asmrules.c
gst/realmedia/rmdemux.c

index 61c9fc2..518633e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-08  Jan Schmidt  <Jan.Schmidt@sun.com>
+
+       * gst/realmedia/asmrules.c: (gst_asm_scan_parse_expression),
+       (gst_asm_scan_parse_condition):
+       * gst/realmedia/rmdemux.c: (gst_rmdemux_parse_video_packet):
+       Fix some compiler warnings shown on Forte.
+
 2007-09-29  Sebastien Moutte  <sebastien@moutte.net>
 
        * gst/mpegaudioparse/gstmpegaudioparse.c: (mp3parse_time_to_bytepos),
index f90e915..5d94c7f 100644 (file)
@@ -495,7 +495,7 @@ gst_asm_scan_parse_expression (GstASMScan * scan)
 
     node = gst_asm_node_new ();
     node->type = GST_ASM_NODE_OPERATOR;
-    node->data.optype = scan->token;
+    node->data.optype = (GstASMOp) scan->token;
 
     gst_asm_scan_next_token (scan);
 
@@ -517,7 +517,7 @@ gst_asm_scan_parse_condition (GstASMScan * scan)
 
     node = gst_asm_node_new ();
     node->type = GST_ASM_NODE_OPERATOR;
-    node->data.optype = scan->token;
+    node->data.optype = (GstASMOp) scan->token;
 
     gst_asm_scan_next_token (scan);
 
index cc0fb3e..70935c2 100644 (file)
@@ -2139,7 +2139,7 @@ gst_rmdemux_parse_video_packet (GstRMDemux * rmdemux, GstRMDemuxStream * stream,
     guint8 pkg_header;
     guint pkg_offset;
     guint pkg_length;
-    guint pkg_subseq = 0, pkg_seqnum = -1;
+    guint pkg_subseq = 0, pkg_seqnum = G_MAXUINT;
     guint fragment_size;
     GstBuffer *fragment;