summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-08-26 11:18:38 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-08-26 11:18:38 +0000
commit9fbc550ee173229058094ad2a43858342ba4fc8e (patch)
treec2864ef5bc9270f975f48f9e680446798b9c14ab
parent7ab335f846486a990812ded88edfaf811bae203c (diff)
gst/dccp/gstdccpserversink.*: Don't put globals only used by one '.c' file in a header !
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.
-rw-r--r--ChangeLog7
-rw-r--r--gst/dccp/gstdccpserversink.c4
-rw-r--r--gst/dccp/gstdccpserversink.h2
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 13d80c609..a2c531374 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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):
Whoops, that was one fix too much :)
diff --git a/gst/dccp/gstdccpserversink.c b/gst/dccp/gstdccpserversink.c
index 72ffa16c9..3121acdfd 100644
--- a/gst/dccp/gstdccpserversink.c
+++ b/gst/dccp/gstdccpserversink.c
@@ -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);
diff --git a/gst/dccp/gstdccpserversink.h b/gst/dccp/gstdccpserversink.h
index 5fead4749..0b2623ade 100644
--- a/gst/dccp/gstdccpserversink.h
+++ b/gst/dccp/gstdccpserversink.h
@@ -58,8 +58,6 @@ struct _Client
GstFlowReturn flow_status;
};
-pthread_t accept_thread_id;
-
struct _GstDCCPServerSink
{
GstBaseSink element;