gst/dccp/gstdccpserversink.*: Don't put globals only used by one '.c' file in a header !
authorEdward Hervey <bilboed@bilboed.com>
Tue, 26 Aug 2008 11:18:38 +0000 (11:18 +0000)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 26 Aug 2008 11:18:38 +0000 (11:18 +0000)
Original commit message from CVS:
* gst/dccp/gstdccpserversink.c:
* gst/dccp/gstdccpserversink.h:
Don't put globals only used by one '.c' file in a header !
Declare it as static, fixes build on macosx.

ChangeLog
gst/dccp/gstdccpserversink.c
gst/dccp/gstdccpserversink.h

index 13d80c609c9635c3ff58caad11c137a50d8156bc..a2c531374b4219ac695e9f49810e346ac3ceb77a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-08-26  Edward Hervey  <edward.hervey@collabora.co.uk>
+
+       * gst/dccp/gstdccpserversink.c:
+       * gst/dccp/gstdccpserversink.h:
+       Don't put globals only used by one '.c' file in a header !
+       Declare it as static, fixes build on macosx.
+
 2008-08-26  Edward Hervey  <edward.hervey@collabora.co.uk>
 
        * gst/dccp/gstdccp.c: (gst_dccp_send_buffer):
index 72ffa16c95f411e4c549c796d448b8126c1e3509..3121acdfdbdfaea51522d1440256016696cea175 100644 (file)
@@ -74,7 +74,9 @@ enum
   PROP_WAIT_CONNECTIONS
 };
 
-pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
+static pthread_t accept_thread_id;
+
+static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
 static gboolean gst_dccp_server_sink_stop (GstBaseSink * bsink);
 
 GST_DEBUG_CATEGORY_STATIC (dccpserversink_debug);
index 5fead474990dc04312bc874c915265a8ac5d756a..0b2623adee3144bb1a1316d346d5a0ba68f20357 100644 (file)
@@ -58,8 +58,6 @@ struct _Client
   GstFlowReturn flow_status;
 };
 
-pthread_t accept_thread_id;
-
 struct _GstDCCPServerSink
 {
   GstBaseSink element;