From ca1c48e95c31821cd0370e00f6c09915da8b257e Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Thu, 28 Dec 2000 22:12:02 +0000 Subject: [PATCH] Updated copyright in all the libgst files. Original commit message from CVS: Updated copyright in all the libgst files. Created gst_private.h, set up all files to use it. --- gst/Makefile.am | 9 ++++---- gst/cothreads.c | 8 +++++-- gst/cothreads.h | 5 +++- gst/elements/gstasyncdisksrc.h | 1 - gst/elements/gstqueue.c | 2 +- gst/gst.c | 11 ++++++--- gst/gst.h | 7 ++++-- gst/gst_private.h | 34 +++++++++++++++++++++++++++ gst/gstarch.h | 11 +++++---- gst/gstautoplug.c | 11 ++++++--- gst/gstautoplug.h | 9 +++++--- gst/gstbin.c | 10 +++++--- gst/gstbin.h | 7 ++++-- gst/gstbuffer.c | 10 +++++--- gst/gstbuffer.h | 14 ++++++++---- gst/gstbufferpool.c | 10 +++++--- gst/gstbufferpool.h | 9 +++++--- gst/gstcaps.c | 13 +++++++---- gst/gstclock.c | 14 ++++++++---- gst/gstclock.h | 9 +++++--- gst/gstconnection.c | 9 ++++++-- gst/gstconnection.h | 7 ++++-- gst/gstcpu.c | 12 ++++++---- gst/gstcpu.h | 7 ++++-- gst/gstdebug.h | 7 ++++-- gst/gstelement.c | 17 ++++++++++---- gst/gstelement.h | 9 +++++--- gst/gstelementfactory.c | 9 +++++--- gst/gstextratypes.c | 9 ++++++-- gst/gstextratypes.h | 8 +++++-- gst/gstfilter.c | 9 ++++++-- gst/gstfilter.h | 8 +++++-- gst/gsti386.h | 5 +++- gst/gstlog.h | 9 +++++--- gst/gstmeta.c | 8 +++++-- gst/gstmeta.h | 12 ++++++---- gst/gstobject.c | 9 ++++++-- gst/gstobject.h | 9 +++++--- gst/gstpad.c | 7 ++++-- gst/gstpad.h | 9 +++++--- gst/gstpipeline.c | 10 +++++--- gst/gstpipeline.h | 9 +++++--- gst/gstplugin.c | 17 +++++++------- gst/gstplugin.h | 8 +++++-- gst/gstppc.h | 5 +++- gst/gstprops.c | 10 +++++--- gst/gstprops.h | 8 +++++-- gst/gstpropsprivate.h | 7 ++++-- gst/gstscheduler.c | 9 +++++--- gst/gstscheduler.h | 8 +++++-- gst/gstsink.c | 8 +++++-- gst/gstsink.h | 8 ++++--- gst/gstsrc.c | 9 ++++++-- gst/gstsrc.h | 9 +++++--- gst/gsttee.c | 10 ++++++-- gst/gsttee.h | 9 +++++--- gst/gstthread.c | 47 +++++++++++++++++++++++++++----------- gst/gstthread.h | 9 +++++--- gst/gsttrace.c | 10 ++++++-- gst/gsttrace.h | 8 +++++-- gst/gsttype.c | 11 ++++++--- gst/gsttype.h | 8 ++++--- gst/gstutils.c | 7 ++++-- gst/gstutils.h | 7 ++++-- gst/gstxml.c | 11 ++++++--- gst/gstxml.h | 9 +++++--- plugins/elements/gstasyncdisksrc.h | 1 - plugins/elements/gstqueue.c | 2 +- 68 files changed, 469 insertions(+), 188 deletions(-) create mode 100644 gst/gst_private.h diff --git a/gst/Makefile.am b/gst/Makefile.am index e64ac09..7da2d80 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -82,10 +82,11 @@ libgstinclude_HEADERS = \ cothreads.h \ gstscheduler.h -noinst_HEADERS = \ - gstarch.h \ - gsti386.h \ - gstppc.h +noinst_HEADERS = \ + gst_private.h \ + gstarch.h \ + gsti386.h \ + gstppc.h libgst_la_LIBADD = $(GLIB_LIBS) $(GTK_LIBS) $(XML_LIBS) libgst_la_LDFLAGS = -version-info $(STREAMER_CURRENT):$(STREAMER_REVISION):$(STREAMER_AGE) diff --git a/gst/cothreads.c b/gst/cothreads.c index 211d655..485505f9 100644 --- a/gst/cothreads.c +++ b/gst/cothreads.c @@ -1,5 +1,8 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * cothreads.c: Cothreading routines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -27,11 +30,12 @@ /* we make too much noise for normal debugging... */ #define GST_DEBUG_FORCE_DISABLE +#include "gst_private.h" -#include "gstdebug.h" #include "cothreads.h" #include "gstarch.h" + pthread_key_t _cothread_key = -1; /* Disablig this define allows you to shut off a few checks in diff --git a/gst/cothreads.h b/gst/cothreads.h index 0a7d32c..c00dd42 100644 --- a/gst/cothreads.h +++ b/gst/cothreads.h @@ -1,5 +1,8 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * cothreads.h: Header for cothreading routines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/elements/gstasyncdisksrc.h b/gst/elements/gstasyncdisksrc.h index 826e8d5..cc46ec4 100644 --- a/gst/elements/gstasyncdisksrc.h +++ b/gst/elements/gstasyncdisksrc.h @@ -22,7 +22,6 @@ #define __GST_ASYNCDISKSRC_H__ -#include #include diff --git a/gst/elements/gstqueue.c b/gst/elements/gstqueue.c index eaf637d..19fd6a0 100644 --- a/gst/elements/gstqueue.c +++ b/gst/elements/gstqueue.c @@ -132,7 +132,7 @@ gst_queue_init (GstQueue *queue) queue->queue = NULL; queue->level_buffers = 0; - queue->max_buffers = 20; + queue->max_buffers = 100; queue->block = TRUE; queue->level_bytes = 0; queue->size_buffers = 0; diff --git a/gst/gst.c b/gst/gst.c index 29d8cef..2d29216 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gst.c: Initialization and non-pipeline operations * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,7 +20,8 @@ * Boston, MA 02111-1307, USA. */ -#include "gstdebug.h" +#include "gst_private.h" + #include "gstcpu.h" #include "gsttype.h" #include "gstplugin.h" @@ -26,6 +30,7 @@ #include "gstpipeline.h" #include "gstthread.h" + extern gint _gst_trace_on; GHashTable *__gst_function_pointers = NULL; diff --git a/gst/gst.h b/gst/gst.h index aa40b1e..4d06e26 100644 --- a/gst/gst.h +++ b/gst/gst.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gst.h: Main header for GStreamer, apps should include this * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gst_private.h b/gst/gst_private.h new file mode 100644 index 0000000..752708d --- /dev/null +++ b/gst/gst_private.h @@ -0,0 +1,34 @@ +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gst_private.h: Private header for within libgst + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#ifndef __GST_PRIVATE_H__ +#define __GST_PRIVATE_H__ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include +//#include + +#endif /* __GST_PRIVATE_H__ */ diff --git a/gst/gstarch.h b/gst/gstarch.h index 2cf697d..1ae9083 100644 --- a/gst/gstarch.h +++ b/gst/gstarch.h @@ -1,5 +1,8 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstarch.h: Architecture-specific inclusions * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,8 +20,8 @@ * Boston, MA 02111-1307, USA. */ -#ifndef GST_HGUARD_GSTARCH_H -#define GST_HGUARD_GSTARCH_H +#ifndef __GST_GSTARCH_H__ +#define __GST_GSTARCH_H__ #ifdef HAVE_CONFIG_H #include "config.h" @@ -34,4 +37,4 @@ #endif #endif -#endif /* GST_HGUARD_GSTARCH_H */ +#endif /* __GST_GSTARCH_H__ */ diff --git a/gst/gstautoplug.c b/gst/gstautoplug.c index 1585fd9..8b05e2b 100644 --- a/gst/gstautoplug.c +++ b/gst/gstautoplug.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstautoplug.c: Autoplugging of pipelines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,7 +20,9 @@ * Boston, MA 02111-1307, USA. */ -#include "gstdebug.h" +//#define GST_DEBUG_ENABLED +#include "gst_private.h" + #include "gstautoplug.h" static void gst_autoplug_class_init (GstAutoplugClass *klass); diff --git a/gst/gstautoplug.h b/gst/gstautoplug.h index 0493ce9..b895dfe 100644 --- a/gst/gstautoplug.h +++ b/gst/gstautoplug.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstautoplug.h: Header for autoplugging functionality * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,7 +24,7 @@ #ifndef __GST_AUTOPLUG_H__ #define __GST_AUTOPLUG_H__ -#include "gstelement.h" +#include #ifdef __cplusplus extern "C" { diff --git a/gst/gstbin.c b/gst/gstbin.c index c8ff85d..68b5a4b 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbin.c: GstBin container object and support code * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,14 +21,15 @@ */ //#define GST_DEBUG_ENABLED +#include "gst_private.h" #include "gstbin.h" -#include "gstdebug.h" #include "gstsrc.h" #include "gstconnection.h" #include "gstscheduler.h" + GstElementDetails gst_bin_details = { "Generic bin", "Bin", diff --git a/gst/gstbin.h b/gst/gstbin.h index bb624b4..d5ddad9 100644 --- a/gst/gstbin.h +++ b/gst/gstbin.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbin.h: Header for GstBin container object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 19d68d4..c30bad3 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbuffer.c: Buffer operations * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -20,10 +23,11 @@ /* this file makes too much noise for most debugging sessions */ #define GST_DEBUG_FORCE_DISABLE +#include "gst_private.h" -#include "gstdebug.h" #include "gstbuffer.h" + GMemChunk *_gst_buffer_chunk; void diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index c585016..5f5a13f 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbuffer.h: Header for GstBuffer object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,16 +24,17 @@ #ifndef __GST_BUFFER_H__ #define __GST_BUFFER_H__ +#include +#include + #ifdef HAVE_CONFIG_H -#include +#include "config.h" #endif #ifdef HAVE_ATOMIC_H #include #endif -#include -#include #ifdef __cplusplus extern "C" { diff --git a/gst/gstbufferpool.c b/gst/gstbufferpool.c index 0f9919a..d7ac80f 100644 --- a/gst/gstbufferpool.c +++ b/gst/gstbufferpool.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbufferpool.c: Buffer-pool operations * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,7 +21,8 @@ */ -#include "gstdebug.h" +#include "gst_private.h" + #include "gstbuffer.h" diff --git a/gst/gstbufferpool.h b/gst/gstbufferpool.h index 189fc03..9f52b52 100644 --- a/gst/gstbufferpool.h +++ b/gst/gstbufferpool.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstbufferpool.h: Header for buffer-pool management * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,12 +20,12 @@ * Boston, MA 02111-1307, USA. */ - #ifndef __GST_BUFFER_POOL_H__ #define __GST_BUFFER_POOL_H__ #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstcaps.c b/gst/gstcaps.c index b8ec99f..811e610 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstcaps.c: Element capabilities subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,13 +20,15 @@ * Boston, MA 02111-1307, USA. */ -//#define DEBUG_ENABLED +//#define GST_DEBUG_ENABLED +#include "gst_private.h" -#include "gstdebug.h" #include "gstcaps.h" #include "gsttype.h" #include "gstpropsprivate.h" + + void _gst_caps_initialize (void) { diff --git a/gst/gstclock.c b/gst/gstclock.c index e269c79..b103655 100644 --- a/gst/gstclock.c +++ b/gst/gstclock.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstclock.c: Clock subsystem for maintaining time sync * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,11 +21,14 @@ */ #include -//#define DEBUG_ENABLED + +//#define GST_DEBUG_ENABLED +#include "gst_private.h" + #include "gstclock.h" -#include "gstdebug.h" #include "gstsink.h" + static GstClock *the_system_clock = NULL; /** diff --git a/gst/gstclock.h b/gst/gstclock.h index bb8a0a3..8fc68c4 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstclock.h: Header for clock subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,9 +24,9 @@ #ifndef __GST_CLOCK_H__ #define __GST_CLOCK_H__ - #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstconnection.c b/gst/gstconnection.c index 4e0dcf1..50a8bd5 100644 --- a/gst/gstconnection.c +++ b/gst/gstconnection.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstconnection.c: GstConnection element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gstconnection.h" diff --git a/gst/gstconnection.h b/gst/gstconnection.h index 1640ff4..751fcab 100644 --- a/gst/gstconnection.h +++ b/gst/gstconnection.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstconnection.h: Header for GstConnection element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstcpu.c b/gst/gstcpu.c index 928573a..52758a3 100644 --- a/gst/gstcpu.c +++ b/gst/gstcpu.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstcpu.c: CPU detection and architecture-specific routines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -19,12 +22,11 @@ #include -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include "gst_private.h" #include "gstcpu.h" + static guint32 _gst_cpu_flags; #ifdef HAVE_CPU_I386 diff --git a/gst/gstcpu.h b/gst/gstcpu.h index 306c679..f31e709 100644 --- a/gst/gstcpu.h +++ b/gst/gstcpu.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstcpu.h: Header for CPU-specific routines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstdebug.h b/gst/gstdebug.h index b438332..e07fe45 100644 --- a/gst/gstdebug.h +++ b/gst/gstdebug.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstdebug.h: Debugging helper macros * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstelement.c b/gst/gstelement.c index f657fa6..442f989 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstelement.c: The base element, all elements derive from this * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,10 +20,13 @@ * Boston, MA 02111-1307, USA. */ -#include "gstdebug.h" +//#define GST_DEBUG_ENABLED +#include "gst_private.h" + #include "gstelement.h" #include "gstextratypes.h" + /* Element signals and args */ enum { STATE_CHANGE, @@ -371,9 +377,10 @@ gst_element_set_state (GstElement *element, GstElementState state) /* if that outright didn't work, we need to bail right away */ /* NOTE: this will bail on ASYNC as well! */ - if (return_val != GST_STATE_SUCCESS && - return_val != GST_STATE_ASYNC) + if (return_val == GST_STATE_FAILURE) { +// DEBUG("have async return from '%s'\n",gst_element_get_name(element)); return return_val; + } } /* this is redundant, really, it will always return SUCCESS */ diff --git a/gst/gstelement.h b/gst/gstelement.h index 3dfe901..b8b6801 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstelement.h: Header for GstElement * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,8 +24,8 @@ #ifndef __GST_ELEMENT_H__ #define __GST_ELEMENT_H__ - #include + #include #include #include diff --git a/gst/gstelementfactory.c b/gst/gstelementfactory.c index 8efdcf3..a6542ed 100644 --- a/gst/gstelementfactory.c +++ b/gst/gstelementfactory.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstelementfactory.c: GstElementFactory object, support routines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,8 +21,8 @@ */ //#define DEBUG_ENABLED +#include "gst_private.h" -#include "gstdebug.h" #include "gstelement.h" #include "gstplugin.h" diff --git a/gst/gstextratypes.c b/gst/gstextratypes.c index c23898a..75e8a3a 100644 --- a/gst/gstextratypes.c +++ b/gst/gstextratypes.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstextratypes.c: Extra GtkTypes: filename type, etc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gstextratypes.h" GtkType diff --git a/gst/gstextratypes.h b/gst/gstextratypes.h index 7d39009..e482be6 100644 --- a/gst/gstextratypes.h +++ b/gst/gstextratypes.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstextratypes.h: Header for extra GtkTypes * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +26,7 @@ #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstfilter.c b/gst/gstfilter.c index 5bfe208..2fe81b1 100644 --- a/gst/gstfilter.c +++ b/gst/gstfilter.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstfilter.c: GstFilter element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gstfilter.h" diff --git a/gst/gstfilter.h b/gst/gstfilter.h index 2764bd1..67ffd30 100644 --- a/gst/gstfilter.h +++ b/gst/gstfilter.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstfilter.h: Header for GstFilter element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +26,7 @@ #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gsti386.h b/gst/gsti386.h index 0201be6..6283744 100644 --- a/gst/gsti386.h +++ b/gst/gsti386.h @@ -1,5 +1,8 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsti386.h: Header for x86-specific architecture issues * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstlog.h b/gst/gstlog.h index e9b353b..cba96eb 100644 --- a/gst/gstlog.h +++ b/gst/gstlog.h @@ -1,8 +1,11 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstlog.h: Header for event logging (depracated?) * * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public + * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * diff --git a/gst/gstmeta.c b/gst/gstmeta.c index db36218..42484e9 100644 --- a/gst/gstmeta.c +++ b/gst/gstmeta.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstmeta.c: Metadata subsystem for describing buffer properties * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" #include "gstmeta.h" #include "gsttrace.h" diff --git a/gst/gstmeta.h b/gst/gstmeta.h index cb8d600..3a6ae44 100644 --- a/gst/gstmeta.h +++ b/gst/gstmeta.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstmeta.h: Header for metadata subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,15 +26,16 @@ #define __GST_META_H__ #include - + #ifdef HAVE_CONFIG_H -#include +#include "config.h" #endif #ifdef HAVE_ATOMIC_H #include #endif + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstobject.c b/gst/gstobject.c index c12e88e..07d9a0e 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstobject.c: Fundamental class used for all of GStreamer * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gstobject.h" /* Object signals and args */ diff --git a/gst/gstobject.h b/gst/gstobject.h index b44370f..14bec67 100644 --- a/gst/gstobject.h +++ b/gst/gstobject.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstobject.h: Header for base GstObject * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -25,7 +28,7 @@ #include #ifdef HAVE_CONFIG_H -#include +#include "config.h" #endif #ifdef HAVE_ATOMIC_H diff --git a/gst/gstpad.c b/gst/gstpad.c index 1bf181f..8aeab15 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstpad.c: Pads for connecting elements together * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstpad.h b/gst/gstpad.h index 571598f..d404ffe 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstpad.h: Header for GstPad object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,7 +24,6 @@ #ifndef __GST_PAD_H__ #define __GST_PAD_H__ - #include #include @@ -29,6 +31,7 @@ #include #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c index 9d55996..af34e1e 100644 --- a/gst/gstpipeline.c +++ b/gst/gstpipeline.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstpipeline.c: Overall pipeline management element * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,8 +21,8 @@ */ //#define GST_DEBUG_ENABLED +#include "gst_private.h" -#include "gstdebug.h" #include "gstpipeline.h" #include "gstthread.h" #include "gstsink.h" @@ -27,6 +30,7 @@ #include "gsttype.h" #include "gstautoplug.h" + GstElementDetails gst_pipeline_details = { "Pipeline object", "Bin", diff --git a/gst/gstpipeline.h b/gst/gstpipeline.h index bfbbb38..5ab0afe 100644 --- a/gst/gstpipeline.h +++ b/gst/gstpipeline.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstpipeline.h: Header for GstPipeline element * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,9 +24,9 @@ #ifndef __GST_PIPELINE_H__ #define __GST_PIPELINE_H__ - #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstplugin.c b/gst/gstplugin.c index 13ca394..a0c67d2 100644 --- a/gst/gstplugin.c +++ b/gst/gstplugin.c @@ -1,11 +1,14 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstplugin.c: Plugin subsystem for loading elements, types, and libs * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU @@ -17,17 +20,15 @@ * Boston, MA 02111-1307, USA. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include #include #include #include #include -#include "gstdebug.h" +//#define GST_DEBUG_ENABLED +#include "gst_private.h" + #include "gstplugin.h" diff --git a/gst/gstplugin.h b/gst/gstplugin.h index 997fd39..7f9e535 100644 --- a/gst/gstplugin.h +++ b/gst/gstplugin.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstplugin.h: Header for plugin subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -27,6 +30,7 @@ #include #include + typedef struct _GstPlugin GstPlugin; typedef struct _GstPluginElement GstPluginElement; diff --git a/gst/gstppc.h b/gst/gstppc.h index f98d103..c23b7c7 100644 --- a/gst/gstppc.h +++ b/gst/gstppc.h @@ -1,5 +1,8 @@ /* GStreamer - * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstppc.h: Header for PPC-specific architecture issues * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstprops.c b/gst/gstprops.c index 1dd465f..6e03d11 100644 --- a/gst/gstprops.c +++ b/gst/gstprops.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstprops.c: Properties subsystem for generic usage * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,11 +21,12 @@ */ #define DEBUG_ENABLED +#include "gst_private.h" -#include "gstdebug.h" #include "gstprops.h" #include "gstpropsprivate.h" + static gboolean gst_props_entry_check_compatibility (GstPropsEntry *entry1, GstPropsEntry *entry2); diff --git a/gst/gstprops.h b/gst/gstprops.h index c7311e3..57079b1 100644 --- a/gst/gstprops.h +++ b/gst/gstprops.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstprops.h: Header for properties subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -24,6 +27,7 @@ #include #include + typedef struct _GstProps GstProps; typedef gpointer GstPropsFactoryEntry; typedef GstPropsFactoryEntry GstPropsFactory[]; diff --git a/gst/gstpropsprivate.h b/gst/gstpropsprivate.h index ebdec45..8a5fb05 100644 --- a/gst/gstpropsprivate.h +++ b/gst/gstpropsprivate.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstpropsprivate.h: Private header for properties subsystem * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstscheduler.c b/gst/gstscheduler.c index 40fb11d..acf62eb 100644 --- a/gst/gstscheduler.c +++ b/gst/gstscheduler.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstscheduler.c: Default scheduling code for most cases * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -18,9 +21,9 @@ */ //#define GST_DEBUG_ENABLED +#include "gst_private.h" #include "gstscheduler.h" -#include "gstdebug.h" static int diff --git a/gst/gstscheduler.h b/gst/gstscheduler.h index a57348f..5cfbfff 100644 --- a/gst/gstscheduler.h +++ b/gst/gstscheduler.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstscheduler.h: Header for default scheduler code * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +26,7 @@ #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstsink.c b/gst/gstsink.c index 235fb3d..046ca1a 100644 --- a/gst/gstsink.c +++ b/gst/gstsink.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstsink.c: GstSink object (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,7 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" #include "gstsink.h" diff --git a/gst/gstsink.h b/gst/gstsink.h index e64ad8a..a049a34 100644 --- a/gst/gstsink.h +++ b/gst/gstsink.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstsink.h: Header for GstSink element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,7 +24,6 @@ #ifndef __GST_SINK_H__ #define __GST_SINK_H__ - #include diff --git a/gst/gstsrc.c b/gst/gstsrc.c index 29aab57..6353488 100644 --- a/gst/gstsrc.c +++ b/gst/gstsrc.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstsrc.c: GstSrc object (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,6 +20,8 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gstsrc.h" diff --git a/gst/gstsrc.h b/gst/gstsrc.h index 36b12c9..75cdd5b 100644 --- a/gst/gstsrc.h +++ b/gst/gstsrc.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstsrc.h: Header for GstSrc element (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,9 +24,9 @@ #ifndef __GST_SRC_H__ #define __GST_SRC_H__ - #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gsttee.c b/gst/gsttee.c index 7c69dba..c59b878 100644 --- a/gst/gsttee.c +++ b/gst/gsttee.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttee.c: Tee element, one in N out * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,8 +20,11 @@ * Boston, MA 02111-1307, USA. */ +#include "gst_private.h" + #include "gsttee.h" + GstElementDetails gst_tee_details = { "Tee pipe fitting", "Tee", diff --git a/gst/gsttee.h b/gst/gsttee.h index e2a2046..79c558c 100644 --- a/gst/gsttee.h +++ b/gst/gsttee.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttee.h: Header for GstTee element * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,9 +24,9 @@ #ifndef __GST_TEE_H__ #define __GST_TEE_H__ - #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gstthread.c b/gst/gstthread.c index 172accf..be867ed 100644 --- a/gst/gstthread.c +++ b/gst/gstthread.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstthread.c: Threaded container object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -19,8 +22,11 @@ #include +//#define GST_DEBUG_ENABLED +#include "gst_private.h" + #include "gstthread.h" -#include "gstdebug.h" + GstElementDetails gst_thread_details = { "Threaded container", @@ -57,6 +63,7 @@ static void gst_thread_restore_thyself (GstElement *element,xmlNodePtr parent GHashTable *elements); static void gst_thread_signal_thread (GstThread *thread); +static void gst_thread_wait_thread (GstThread *thread); static void gst_thread_create_plan_dummy (GstBin *bin); static void* gst_thread_main_loop (void *arg); @@ -216,7 +223,7 @@ gst_thread_change_state (GstElement *element) pending = GST_STATE_PENDING (element); transition = GST_STATE_TRANSITION (element); - if (pending == GST_STATE (element)) return GST_STATE_SUCCESS; +// if (pending == GST_STATE (element)) return GST_STATE_SUCCESS; GST_FLAG_UNSET (thread, GST_THREAD_STATE_SPINNING); @@ -228,34 +235,37 @@ gst_thread_change_state (GstElement *element) switch (transition) { case GST_STATE_NULL_TO_READY: - if (!stateset) return FALSE; +// if (!stateset) return FALSE; // we want to prepare our internal state for doing the iterations gst_info("gstthread: preparing thread \"%s\" for iterations:\n", gst_element_get_name (GST_ELEMENT (element))); - + // set the state to idle GST_FLAG_UNSET (thread, GST_THREAD_STATE_SPINNING); // create the thread if that's what we're supposed to do gst_info("gstthread: flags are 0x%08x\n", GST_FLAGS (thread)); - + if (GST_FLAG_IS_SET (thread, GST_THREAD_CREATE)) { gst_info("gstthread: starting thread \"%s\"\n", gst_element_get_name (GST_ELEMENT (element))); - + + // create the thread pthread_create (&thread->thread_id, NULL, gst_thread_main_loop, thread); + + // wait for it to 'spin up' +// gst_thread_wait_thread (thread); } else { gst_info("gstthread: NOT starting thread \"%s\"\n", gst_element_get_name (GST_ELEMENT (element))); } - return GST_STATE_ASYNC; break; case GST_STATE_PAUSED_TO_PLAYING: case GST_STATE_READY_TO_PLAYING: if (!stateset) return FALSE; gst_info("gstthread: starting thread \"%s\"\n", gst_element_get_name (GST_ELEMENT (element))); - + GST_FLAG_SET (thread, GST_THREAD_STATE_SPINNING); gst_thread_signal_thread (thread); break; @@ -295,16 +305,16 @@ gst_thread_main_loop (void *arg) gst_info("gstthread: thread \"%s\" is running with PID %d\n", gst_element_get_name (GST_ELEMENT (thread)), getpid ()); + // construct the plan and signal back if (GST_BIN_CLASS (parent_class)->create_plan) GST_BIN_CLASS (parent_class)->create_plan (GST_BIN (thread)); + gst_thread_signal_thread (thread); while (!GST_FLAG_IS_SET (thread, GST_THREAD_STATE_REAPING)) { if (GST_FLAG_IS_SET (thread, GST_THREAD_STATE_SPINNING)) gst_bin_iterate (GST_BIN (thread)); else { - g_mutex_lock (thread->lock); - g_cond_wait (thread->cond, thread->lock); - g_mutex_unlock (thread->lock); + gst_thread_wait_thread (thread); } } @@ -319,11 +329,22 @@ gst_thread_main_loop (void *arg) static void gst_thread_signal_thread (GstThread *thread) { + DEBUG("signaling thread\n"); g_mutex_lock (thread->lock); g_cond_signal (thread->cond); g_mutex_unlock (thread->lock); } +static void +gst_thread_wait_thread (GstThread *thread) +{ + DEBUG("waiting for thread\n"); + g_mutex_lock (thread->lock); + g_cond_wait (thread->cond, thread->lock); + g_mutex_unlock (thread->lock); +} + + static void gst_thread_restore_thyself (GstElement *element, xmlNodePtr parent, diff --git a/gst/gstthread.h b/gst/gstthread.h index 02a1156..8c53a11 100644 --- a/gst/gstthread.h +++ b/gst/gstthread.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstthread.h: Header for GstThread object * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,11 +24,11 @@ #ifndef __GST_THREAD_H__ #define __GST_THREAD_H__ - #include #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/gst/gsttrace.c b/gst/gsttrace.c index 3101fd5..182cdc9 100644 --- a/gst/gsttrace.c +++ b/gst/gsttrace.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttrace.c: Tracing functions (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -25,8 +28,11 @@ #include #include +#include "gst_private.h" + #include "gsttrace.h" + #ifdef HAVE_RDTS __inline__ void read_tsc(guint64 *dst) { __asm__ __volatile__ diff --git a/gst/gsttrace.h b/gst/gsttrace.h index 36a588f..9af6e6e 100644 --- a/gst/gsttrace.h +++ b/gst/gsttrace.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttrace.h: Header for tracing functions (depracated) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -23,6 +26,7 @@ #include + typedef struct _GstTrace GstTrace; typedef struct _GstTraceEntry GstTraceEntry; diff --git a/gst/gsttype.c b/gst/gsttype.c index f3ad1dd..caf6600 100644 --- a/gst/gsttype.c +++ b/gst/gsttype.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttype.c: Media-type management functions * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -26,10 +29,12 @@ #include -#include "gstdebug.h" +#include "gst_private.h" + #include "gsttype.h" #include "gstplugin.h" + /* global list of registered types */ GList *_gst_types; guint16 _gst_maxtype; diff --git a/gst/gsttype.h b/gst/gsttype.h index f5b0d8a..571e3c0 100644 --- a/gst/gsttype.h +++ b/gst/gsttype.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gsttype.h: Header for type management * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -21,7 +24,6 @@ #ifndef __GST_TYPE_H__ #define __GST_TYPE_H__ - #include #include diff --git a/gst/gstutils.c b/gst/gstutils.c index 1870686..baaae4c 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstutils.c: Utility functions: gtk_get_arg stuff, etc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstutils.h b/gst/gstutils.h index c1a7ba0..a6465fe 100644 --- a/gst/gstutils.h +++ b/gst/gstutils.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstutils.h: Header for various utility functions * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public diff --git a/gst/gstxml.c b/gst/gstxml.c index 4a08f81..63bae9a 100644 --- a/gst/gstxml.c +++ b/gst/gstxml.c @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstxml.c: XML save/restore of pipelines * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,9 +20,11 @@ * Boston, MA 02111-1307, USA. */ -#include "gstdebug.h" +#include "gst_private.h" + #include "gstxml.h" + static void gst_xml_class_init (GstXMLClass *klass); static void gst_xml_init (GstXML *xml); diff --git a/gst/gstxml.h b/gst/gstxml.h index 3c5714b..85f2980 100644 --- a/gst/gstxml.h +++ b/gst/gstxml.h @@ -1,5 +1,8 @@ -/* Gnome-Streamer - * Copyright (C) <1999> Erik Walthinsen +/* GStreamer + * Copyright (C) 1999,2000 Erik Walthinsen + * 2000 Wim Taymans + * + * gstxml.h: Header for XML save/restore operations * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -17,13 +20,13 @@ * Boston, MA 02111-1307, USA. */ - #ifndef __GST_XML_H__ #define __GST_XML_H__ #include #include + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ diff --git a/plugins/elements/gstasyncdisksrc.h b/plugins/elements/gstasyncdisksrc.h index 826e8d5..cc46ec4 100644 --- a/plugins/elements/gstasyncdisksrc.h +++ b/plugins/elements/gstasyncdisksrc.h @@ -22,7 +22,6 @@ #define __GST_ASYNCDISKSRC_H__ -#include #include diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index eaf637d..19fd6a0 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -132,7 +132,7 @@ gst_queue_init (GstQueue *queue) queue->queue = NULL; queue->level_buffers = 0; - queue->max_buffers = 20; + queue->max_buffers = 100; queue->block = TRUE; queue->level_bytes = 0; queue->size_buffers = 0; -- 2.7.4