common/m4/gst-error.m4: Disable warning of statement not reached on Forte.
authorJosep Torre Valles <josep@fluendo.com>
Mon, 9 Oct 2006 09:32:29 +0000 (09:32 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Mon, 9 Oct 2006 09:32:29 +0000 (09:32 +0000)
Original commit message from CVS:
2006-10-09  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

Patch by: Josep Torre Valles <josep@fluendo.com>

* common/m4/gst-error.m4:
Disable warning of statement not reached on Forte.
* gst/gstmessage.h:
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/base/gstbasesink.c: (gst_base_sink_chain_unlocked):
Fix warning on Forte (value doesn't fit on enumeration).
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
DEBUG macro says it takes minimum of 2 args and so Forte
complains about the use with just 1 arg.
* plugins/elements/gstfdsink.c:
* plugins/elements/gstfdsrc.c:
* plugins/elements/gstfilesink.c:
* plugins/elements/gstfilesrc.c:
Use correct return type for the uri handler implementations.

All these fix warnings in Forte.  Fixes bug #360860.

ChangeLog
common
gst/gstmessage.h
libs/gst/base/gstbasesink.c
libs/gst/net/gstnetclientclock.c
plugins/elements/gstfdsink.c
plugins/elements/gstfdsrc.c
plugins/elements/gstfilesink.c
plugins/elements/gstfilesrc.c

index 6e4cca9..ad54986 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2006-10-09  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       Patch by: Josep Torre Valles <josep@fluendo.com>
+
+       * common/m4/gst-error.m4:
+       Disable warning of statement not reached on Forte.
+       * gst/gstmessage.h:
+       Fix warning on Forte (value doesn't fit on enumeration).
+       * libs/gst/base/gstbasesink.c: (gst_base_sink_chain_unlocked):
+       Fix warning on Forte (value doesn't fit on enumeration).
+       * libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_thread):
+       DEBUG macro says it takes minimum of 2 args and so Forte
+       complains about the use with just 1 arg.
+       * plugins/elements/gstfdsink.c:
+       * plugins/elements/gstfdsrc.c:
+       * plugins/elements/gstfilesink.c:
+       * plugins/elements/gstfilesrc.c:
+       Use correct return type for the uri handler implementations.
+
+       All these fix warnings in Forte.  Fixes bug #360860.
+
 2006-10-08  Tim-Philipp Müller  <tim at centricular dot net>
 
        * gst/gstelement.h:
diff --git a/common b/common
index 83b0880..efcacf2 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 83b08805d0c109b6dbdcfca0a8b9659b1c556480
+Subproject commit efcacf2625da231fbee99b68e0f5db6816cf6fad
index 23e3f2d..32fd0b1 100644 (file)
@@ -84,7 +84,7 @@ typedef enum
   GST_MESSAGE_SEGMENT_START     = (1 << 16),
   GST_MESSAGE_SEGMENT_DONE      = (1 << 17),
   GST_MESSAGE_DURATION          = (1 << 18),
-  GST_MESSAGE_ANY               = ~0
+  GST_MESSAGE_ANY               = G_MAXINT
 } GstMessageType;
 
 #include <gst/gstminiobject.h>
index 91514e6..c3a0e66 100644 (file)
@@ -1913,7 +1913,7 @@ gst_base_sink_chain_unlocked (GstBaseSink * basesink, GstPad * pad,
     GstBuffer * buf)
 {
   GstFlowReturn result;
-  GstClockTime start = -1, end = -1;
+  GstClockTime start = GST_CLOCK_TIME_NONE, end = GST_CLOCK_TIME_NONE;
   GstSegment *clip_segment;
 
   if (G_UNLIKELY (basesink->flushing))
index 1742330..90137cd 100644 (file)
@@ -407,7 +407,7 @@ gst_net_client_clock_thread (gpointer data)
       continue;
     } else if (ret == 0) {
       /* timed out, let's send another packet */
-      DEBUG ("timed out");
+      DEBUG ("timed out %c", 0x32);
 
       packet = gst_net_time_packet_new (NULL);
 
@@ -434,7 +434,7 @@ gst_net_client_clock_thread (gpointer data)
       if (!packet)
         goto receive_error;
 
-      DEBUG ("got packet back");
+      DEBUG ("got packet back %c", 0x32);
       DEBUG ("local_1 = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->local_time));
       DEBUG ("remote = %" GST_TIME_FORMAT, GST_TIME_ARGS (packet->remote_time));
       DEBUG ("local_2 = %" GST_TIME_FORMAT, GST_TIME_ARGS (new_local));
index 1a8e660..e9f398e 100644 (file)
@@ -510,7 +510,7 @@ gst_fd_sink_get_property (GObject * object, guint prop_id, GValue * value,
 
 /*** GSTURIHANDLER INTERFACE *************************************************/
 
-static guint
+static GstURIType
 gst_fd_sink_uri_get_type (void)
 {
   return GST_URI_SINK;
index 77c5bd2..d3fa655 100644 (file)
@@ -447,7 +447,7 @@ could_not_stat:
 
 /*** GSTURIHANDLER INTERFACE *************************************************/
 
-static guint
+static GstURIType
 gst_fd_src_uri_get_type (void)
 {
   return GST_URI_SRC;
index e7d9f75..5637539 100644 (file)
@@ -508,7 +508,7 @@ gst_file_sink_stop (GstBaseSink * basesink)
 
 /*** GSTURIHANDLER INTERFACE *************************************************/
 
-static guint
+static GstURIType
 gst_file_sink_uri_get_type (void)
 {
   return GST_URI_SINK;
index 5010175..f450f60 100644 (file)
@@ -1028,7 +1028,7 @@ gst_file_src_stop (GstBaseSrc * basesrc)
 
 /*** GSTURIHANDLER INTERFACE *************************************************/
 
-static guint
+static GstURIType
 gst_file_src_uri_get_type (void)
 {
   return GST_URI_SRC;