platform/upstream/gstreamer.git
15 years agotests: add example of custom taskpools
Wim Taymans [Thu, 23 Apr 2009 17:42:47 +0000 (19:42 +0200)]
tests: add example of custom taskpools

Add an example to demonstrate the use of a custom taskpool and how to configure
it on the task. Currently the taskpool does not do much yet but it'll create
some custom threads later on.

15 years agotaskpool: fix a comment
Wim Taymans [Thu, 23 Apr 2009 17:41:36 +0000 (19:41 +0200)]
taskpool: fix a comment

15 years agotests: cleanup some code
Wim Taymans [Thu, 23 Apr 2009 17:41:01 +0000 (19:41 +0200)]
tests: cleanup some code

15 years agoPad: post STREAM_STATUS_TYPE_CREATE
Wim Taymans [Thu, 23 Apr 2009 15:48:08 +0000 (17:48 +0200)]
Pad: post STREAM_STATUS_TYPE_CREATE

Post a stream-status message indicating that a new task was created so that the
application has a chance to change the properties of the task.

Fix unit test to take into account the new ref of the message.

15 years agodefs: add new task methods
Wim Taymans [Thu, 23 Apr 2009 15:24:58 +0000 (17:24 +0200)]
defs: add new task methods

15 years agoGstTask: add methods for configuring the pool
Wim Taymans [Thu, 23 Apr 2009 15:19:11 +0000 (17:19 +0200)]
GstTask: add methods for configuring the pool

Add getter and setter for configuring the GstTaskPool to use for a GstTask.

15 years agoTask: remember pool
Wim Taymans [Thu, 23 Apr 2009 15:05:21 +0000 (17:05 +0200)]
Task: remember pool

Remember the pool we currently have our task running so that we can use it to
join the task later on.
Fix a leak of the taskpool.

15 years agodefs: update .defs file with taskpool methods
Wim Taymans [Thu, 23 Apr 2009 14:53:34 +0000 (16:53 +0200)]
defs: update .defs file with taskpool methods

15 years agotask: fix deadlock due to typo
Wim Taymans [Thu, 23 Apr 2009 14:53:14 +0000 (16:53 +0200)]
task: fix deadlock due to typo

15 years agoGstTask: use GstTaskPool for managing threads
Wim Taymans [Mon, 11 May 2009 22:25:11 +0000 (00:25 +0200)]
GstTask: use GstTaskPool for managing threads

Use the new GstTaskPool to handle streaming threads.

15 years agotaskpool: fix docs, make push/join generic
Wim Taymans [Thu, 23 Apr 2009 14:00:56 +0000 (16:00 +0200)]
taskpool: fix docs, make push/join generic

Fix some more docs.
Make _push() return a generic id (this can be something else than a GThread in
some cases) and make _join() use that generic id.

15 years agotaskpool: add new object to manage threads
Wim Taymans [Thu, 23 Apr 2009 13:44:13 +0000 (15:44 +0200)]
taskpool: add new object to manage threads

Add a new object GstTaskPool to manage the streaming threads.
This will allow us to create and use custom configured threads.

15 years agoexamples: set bus handler before state change
Wim Taymans [Wed, 22 Apr 2009 10:04:36 +0000 (12:04 +0200)]
examples: set bus handler before state change

We need to set the bus handler before starting the pipeline or we might just
miss the message we are looking for.

15 years agotests: add example app for stream-status
Wim Taymans [Wed, 22 Apr 2009 08:16:26 +0000 (10:16 +0200)]
tests: add example app for stream-status

Add an example application that adjusts the thread priority of a task using the
stream-status messages.

15 years agoTask: add method to set the priority
Wim Taymans [Tue, 21 Apr 2009 17:15:48 +0000 (19:15 +0200)]
Task: add method to set the priority

Add a method to configure a priority for the threads used by GstTask.

15 years agotests: add a unit-test for the stream-status
Wim Taymans [Tue, 21 Apr 2009 14:30:34 +0000 (16:30 +0200)]
tests: add a unit-test for the stream-status

Add a unit test for the STREAM_STATUS messages.

15 years agoGstTask: improve documentation
Wim Taymans [Mon, 11 May 2009 22:05:12 +0000 (00:05 +0200)]
GstTask: improve documentation

Improve the documentation for the callbacks.

15 years agotests: fix unit-tests for new stream-status
Wim Taymans [Tue, 21 Apr 2009 13:25:12 +0000 (15:25 +0200)]
tests: fix unit-tests for new stream-status

Fix the unit-tests so that they don't fail on the new stream-status messages
that are emited now.

15 years agoGstPad: install thread callbacks of the task
Wim Taymans [Tue, 21 Apr 2009 12:46:29 +0000 (14:46 +0200)]
GstPad: install thread callbacks of the task

Install thread status callbacks on the task object of a pad and post
STREAM_STATUS messages.

15 years agomessage: clarify some docs
Wim Taymans [Wed, 22 Apr 2009 08:14:46 +0000 (10:14 +0200)]
message: clarify some docs

15 years agoTask: call leave_thread before signaling
Wim Taymans [Tue, 21 Apr 2009 12:42:05 +0000 (14:42 +0200)]
Task: call leave_thread before signaling

Call the leave_thread callback before we signal the thread performing the _join
so that we can be sure that the listener still has valid info in the callback.

15 years agoGstMessage: Add STREAM_STATUS message methods
Wim Taymans [Tue, 21 Apr 2009 11:42:01 +0000 (13:42 +0200)]
GstMessage: Add STREAM_STATUS message methods

Add methods to handle the stream_status message types.

15 years agoquark: add "object" quark
Wim Taymans [Tue, 21 Apr 2009 11:05:17 +0000 (13:05 +0200)]
quark: add "object" quark

Add the object quark that will be used for the STREAM_STATUS messages.

15 years agoTask: remove create/join methods
Wim Taymans [Mon, 11 May 2009 21:44:42 +0000 (23:44 +0200)]
Task: remove create/join methods

Prepare for using the GstTaskPool object. We don't need the create and join
callbacks anymore, they will be handled by the pool.

15 years agoGstTask: add private data, fix parent_class
Wim Taymans [Mon, 20 Apr 2009 15:07:50 +0000 (17:07 +0200)]
GstTask: add private data, fix parent_class

Use the parent class that the glib macro gave us
Actually add the private data to the task.

15 years agoGstTask: hook up enter/leave/notify callbacks
Wim Taymans [Mon, 20 Apr 2009 15:19:21 +0000 (17:19 +0200)]
GstTask: hook up enter/leave/notify callbacks

Hoop up the notify/enter/leave callbacks.

15 years agodefs: add new symbol to defs file
Wim Taymans [Mon, 11 May 2009 21:23:20 +0000 (23:23 +0200)]
defs: add new symbol to defs file

15 years agoGstTask: allow setting callbacks
Wim Taymans [Mon, 11 May 2009 21:19:53 +0000 (23:19 +0200)]
GstTask: allow setting callbacks

Allow setting thread callbacks that will allow us to control the threads used by
the task.

15 years agobasesrc: don't ignore pad_start return value
Wim Taymans [Thu, 23 Apr 2009 17:40:11 +0000 (19:40 +0200)]
basesrc: don't ignore pad_start return value

15 years agodesign: more STREAM_STATUS updates
Wim Taymans [Tue, 21 Apr 2009 11:34:18 +0000 (13:34 +0200)]
design: more STREAM_STATUS updates

Pass the thread object in a GValue, which would allow the application to figure
out the type of the object instead of us having to explicitly code it in a
message field.

15 years agodesign: update stream-status document some more
Wim Taymans [Tue, 21 Apr 2009 07:45:08 +0000 (09:45 +0200)]
design: update stream-status document some more

15 years agodesign: add first version of stream-status
Wim Taymans [Mon, 20 Apr 2009 13:55:09 +0000 (15:55 +0200)]
design: add first version of stream-status

Add the first version of the STREAM_STATUS message design docs.
This message will be used to give applications more control over the
streaming threads.

15 years agoGstTask: add some more docs
Wim Taymans [Tue, 21 Apr 2009 15:53:07 +0000 (17:53 +0200)]
GstTask: add some more docs

15 years agoGstPad: use new task function
Wim Taymans [Tue, 21 Apr 2009 15:14:34 +0000 (17:14 +0200)]
GstPad: use new task function

Use the new task_set_state function and actually return its result to
the caller.

15 years agoGstTask: unify task state functions
Wim Taymans [Mon, 11 May 2009 20:59:35 +0000 (22:59 +0200)]
GstTask: unify task state functions

Add new gst_task_set_state() to change the state of the task instead of
duplicating the code in each function.

API: GstTask::gst_task_set_state()

15 years agoMessage: small indentation change.
Wim Taymans [Tue, 21 Apr 2009 11:37:22 +0000 (13:37 +0200)]
Message: small indentation change.

15 years agoAvoid unneeded type checks
Wim Taymans [Sat, 2 May 2009 12:43:11 +0000 (14:43 +0200)]
Avoid unneeded type checks

15 years agoregistry: avoid calling _get_name() too much
Wim Taymans [Sat, 2 May 2009 12:39:48 +0000 (14:39 +0200)]
registry: avoid calling _get_name() too much

Avoid calling gst_plugin_get_name() too many times but instead cache
the value.

15 years agoUse new _ref_sink when we can
Wim Taymans [Sat, 2 May 2009 12:36:50 +0000 (14:36 +0200)]
Use new _ref_sink when we can

15 years agogstobject: add gst_object_ref_sink
Wim Taymans [Sat, 2 May 2009 12:33:01 +0000 (14:33 +0200)]
gstobject: add gst_object_ref_sink

Add the gst_object_ref_sink() method to match the glib one.

API: GstObject::gst_object_ref_sink()

15 years agogstobject: avoid type checks
Wim Taymans [Sat, 2 May 2009 11:06:10 +0000 (13:06 +0200)]
gstobject: avoid type checks

15 years agogstbuffer: avoid typechecks in finalize
Wim Taymans [Sat, 2 May 2009 11:02:10 +0000 (13:02 +0200)]
gstbuffer: avoid typechecks in finalize

Avoid useless typechecking in the finalize of buffers and subbuffers.

15 years agofakesink: avoid typecheck
Wim Taymans [Sat, 2 May 2009 10:59:54 +0000 (12:59 +0200)]
fakesink: avoid typecheck

15 years ago-launch: connect to deep-notify with right name
Wim Taymans [Mon, 20 Apr 2009 12:01:01 +0000 (14:01 +0200)]
-launch: connect to deep-notify with right name

Connect to the right signal name with - instead of _.

15 years agoinfo: Support new printf extensions in glibc 2.10
Jan Schmidt [Fri, 24 Apr 2009 21:06:19 +0000 (22:06 +0100)]
info: Support new printf extensions in glibc 2.10

The printf extension mechanism changed in glibc 2.10, and the older
register_printf_function is deprecated. Detect and use the new
mechanism where available.

15 years agodocs: Fix a typo in the release script
Jan Schmidt [Mon, 20 Apr 2009 11:25:57 +0000 (12:25 +0100)]
docs: Fix a typo in the release script

15 years agoBack to development -> 0.10.23.1
Jan Schmidt [Mon, 11 May 2009 20:11:49 +0000 (21:11 +0100)]
Back to development -> 0.10.23.1

15 years agoRelease 0.10.23 RELEASE-0.10.23
Jan Schmidt [Sun, 10 May 2009 21:41:04 +0000 (22:41 +0100)]
Release 0.10.23

15 years agoUpdate .po files
Jan Schmidt [Sun, 10 May 2009 21:38:45 +0000 (22:38 +0100)]
Update .po files

15 years ago0.10.22.4 pre-release
Jan Schmidt [Wed, 6 May 2009 15:10:11 +0000 (16:10 +0100)]
0.10.22.4 pre-release

15 years agoGstBin: set PENDING_STATE correctly
Wim Taymans [Fri, 24 Apr 2009 17:36:22 +0000 (19:36 +0200)]
GstBin: set PENDING_STATE correctly

Set the pending state correctly when we are going to perform an async
state_continue on the bin.
Fixes #580121

15 years ago0.10.22.3 pre-release
Jan Schmidt [Tue, 21 Apr 2009 19:50:55 +0000 (20:50 +0100)]
0.10.22.3 pre-release

15 years agoAutomatic update of common submodule
Jan Schmidt [Tue, 21 Apr 2009 21:12:04 +0000 (22:12 +0100)]
Automatic update of common submodule

From b3941ea to 6ab11d1

15 years agowin32: define __MSVCRT_VERSION__ when compiling with MingW, for __stat64
Tim-Philipp Müller [Fri, 17 Apr 2009 14:46:52 +0000 (15:46 +0100)]
win32: define __MSVCRT_VERSION__ when compiling with MingW, for __stat64

Need to define this when using MingW, so that the includes provide
__stat64 and friends. We need at least Windows XP SP2 for this.
Fixes #568632.

15 years agogstdebug: compete stubs. Fixes #579177.
Stefan Kost [Thu, 16 Apr 2009 19:26:00 +0000 (22:26 +0300)]
gstdebug: compete stubs. Fixes #579177.

Avoid defines when including gstinfo.h ourself and complete stubs. Sync stub
returns with the defines.

15 years agoconfigure.ac: fork() during registry scanning is unsafe on Cygwin
Yaakov Selkowitz [Fri, 17 Apr 2009 10:44:11 +0000 (11:44 +0100)]
configure.ac: fork() during registry scanning is unsafe on Cygwin

Fixes #555978.

15 years agogst_init: relocatability is unnecessary on Cygwin
Yaakov Selkowitz [Fri, 17 Apr 2009 10:39:59 +0000 (11:39 +0100)]
gst_init: relocatability is unnecessary on Cygwin

See #555978.

15 years agogstinfo: don't assume G_HAVE_ISO_VARARGS implies ISO C99
Brian Cameron [Fri, 17 Apr 2009 09:11:21 +0000 (10:11 +0100)]
gstinfo: don't assume G_HAVE_ISO_VARARGS implies ISO C99

Makes headers C++ clean, esp. with the Sun compilers.
Fixes #567692.

15 years agoGstPlugin: fix compilation if both HAVE_WIN32 and HAVE_SIGACTION are defined
Tim-Philipp Müller [Fri, 17 Apr 2009 08:17:40 +0000 (09:17 +0100)]
GstPlugin: fix compilation if both HAVE_WIN32 and HAVE_SIGACTION are defined

Move _gst_plugin_fault_handler_is_setup into the ifdef block where it's
used. Fixes #578201.

15 years ago-launch: disable CLOCK_LOST message handling
Wim Taymans [Thu, 16 Apr 2009 10:01:50 +0000 (12:01 +0200)]
-launch: disable CLOCK_LOST message handling

Disable the handling of the CLOCK_LOST messages until we fixed and released the
elements (rtspsrc) that break when we quickly PAUSE/PLAY the pipeline.

Fixes #579127

15 years agorelease: Bump version to 0.10.22.2 for pre-release
Jan Schmidt [Wed, 15 Apr 2009 21:24:45 +0000 (22:24 +0100)]
release: Bump version to 0.10.22.2 for pre-release

15 years agowin32: Update win32 build files
Jan Schmidt [Wed, 15 Apr 2009 23:08:20 +0000 (00:08 +0100)]
win32: Update win32 build files

15 years agopo: Update translations from TP
Jan Schmidt [Wed, 15 Apr 2009 22:27:31 +0000 (23:27 +0100)]
po: Update translations from TP

15 years agoChangeLog: regenerate changelog with the gen-changelog script
Jan Schmidt [Wed, 15 Apr 2009 21:17:10 +0000 (22:17 +0100)]
ChangeLog: regenerate changelog with the gen-changelog script

15 years agodocs: remove errant gtk-doc comment marker triggering a warning
Jan Schmidt [Wed, 15 Apr 2009 22:26:13 +0000 (23:26 +0100)]
docs: remove errant gtk-doc comment marker triggering a warning

15 years agoparamspecs: revert gst_param_spec_is_mutable() for release
Jan Schmidt [Wed, 15 Apr 2009 23:02:07 +0000 (00:02 +0100)]
paramspecs: revert gst_param_spec_is_mutable() for release

Revert the gst_param_spec_is_mutable API for this release so we can
discuss it a bit further first.

15 years agologging: fix unused variable warning when disabling debug logs.
Stefan Kost [Wed, 15 Apr 2009 20:33:20 +0000 (23:33 +0300)]
logging: fix unused variable warning when disabling debug logs.

The var was NULL anyway, bacause of the ifdefs there, the message makes no
sense including it.

15 years agogstdebug: show enabled/disabled in configure and fix build for disabled
Stefan Kost [Wed, 15 Apr 2009 20:12:11 +0000 (23:12 +0300)]
gstdebug: show enabled/disabled in configure and fix build for disabled

When its disabled, we poison some symbols to force a build error if they are
used. Dunno how useful this acually is, but we need to disable the poisoning
when we include this ourself. Also don't define some of the dummies, as they
are getting replaced with defines and that creates code that does not compile.

15 years agoUse g_once_init_*() instead of GOnce for the enum types
Sebastian Dröge [Wed, 15 Apr 2009 17:58:34 +0000 (19:58 +0200)]
Use g_once_init_*() instead of GOnce for the enum types

15 years agostaticpadtemplate: Update docs of gst_static_pad_template_get_caps ()
Sebastian Dröge [Wed, 15 Apr 2009 11:05:16 +0000 (13:05 +0200)]
staticpadtemplate: Update docs of gst_static_pad_template_get_caps ()

gst_static_pad_template_get_caps () actually returns a reference to the
caps and it's cleaner to unref them after usage. The core will, however,
always hold a reference to the caps so this didn't result in a memory
leak.

15 years agodocs: use real <note> tags as they look nice in new gtk-doc
Stefan Kost [Tue, 14 Apr 2009 19:32:21 +0000 (22:32 +0300)]
docs: use real <note> tags as they look nice in new gtk-doc

15 years agoFix locking in gst_param_spec_is_mutable
David Schleef [Tue, 14 Apr 2009 19:20:37 +0000 (12:20 -0700)]
Fix locking in gst_param_spec_is_mutable

15 years agocontroller: factor out duplicated code and add a description for it.
Stefan Kost [Tue, 14 Apr 2009 19:07:38 +0000 (22:07 +0300)]
controller: factor out duplicated code and add a description for it.

Also fix typo in the tests while reviewing them.

15 years agodocs: add simple doc blurb
Wim Taymans [Tue, 14 Apr 2009 17:12:52 +0000 (19:12 +0200)]
docs: add simple doc blurb

15 years agoparamspecs: add note about racyness
Wim Taymans [Tue, 14 Apr 2009 17:11:44 +0000 (19:11 +0200)]
paramspecs: add note about racyness

Add a note about potential racyness in _is_mutable().

15 years agoinfo: use mutex to do console colors on windows
LRN [Tue, 14 Apr 2009 08:32:07 +0000 (10:32 +0200)]
info: use mutex to do console colors on windows

Use a static mutex to keep the console colors and context together when
debugging with colors on Windows.
Fixes #517231.

15 years agodocs: add Since: tags to gtk-doc chunks for new param spec API
Tim-Philipp Müller [Mon, 13 Apr 2009 13:27:49 +0000 (14:27 +0100)]
docs: add Since: tags to gtk-doc chunks for new param spec API

And, for our release manager, the in-commit-message keywords
for the previous commit:
API: GST_PARAM_MUTABLE_READY
API: GST_PARAM_MUTABLE_PAUSED
API: GST_PARAM_MUTABLE_PLAYING
API: gst_param_spec_is_mutable

15 years agoAdd param spec flags for when a property can be changed
David Schleef [Fri, 20 Feb 2009 19:09:19 +0000 (11:09 -0800)]
Add param spec flags for when a property can be changed

Adds GST_PARAM_MUTABLE* flags to indicate in which states a
property can be changed and take effect.  Fixes #571559

15 years ago-launch: handle clock-lost messages
Wim Taymans [Fri, 10 Apr 2009 12:15:36 +0000 (14:15 +0200)]
-launch: handle clock-lost messages

When we receive a clock-lost message, we need to select a new clock in the
pipeline by setting the pipeline to PAUSED and back to PLAYING.

15 years agotee: add property to control the alloc pad
Olivier Crete [Thu, 9 Apr 2009 16:27:21 +0000 (18:27 +0200)]
tee: add property to control the alloc pad

Add a property to control the pad used for proxying the buffer_alloc function on
the sinkpad.
Fixes #577891.

15 years agobin: always mark pending_async_done
Wim Taymans [Thu, 9 Apr 2009 09:51:43 +0000 (11:51 +0200)]
bin: always mark pending_async_done

When we get an ASYNC_DONE message when a state change was busy, set the
pending_async_done flag so that after the state change completes, the bin can
check if all async elements are finished. Don't only do this for the bin itself
but for all elements.

This fixes some bins in bins that simulate async state changes by posting ASYNC
messages (such as sdpparse in uridecodebin/playbin2).

15 years agoinfo: fix compilation, %08x needs an unsigned int
Wim Taymans [Thu, 9 Apr 2009 09:42:48 +0000 (11:42 +0200)]
info: fix compilation, %08x needs an unsigned int

%08x needs an unsigned int, so give it that.

15 years agoAPI: add FIXME and DUMPMEM log levels and convenience macros
Tim-Philipp Müller [Mon, 6 Apr 2009 00:27:26 +0000 (01:27 +0100)]
API: add FIXME and DUMPMEM log levels and convenience macros

Two new log levels to dump FIXMEs into the log and to log data
in form of a hex dump (#578114).

API: GST_CAT_FIXME_OBJECT
API: GST_CAT_MEMDUMP_OBJECT
API: GST_CAT_FIXME
API: GST_CAT_MEMDUMP
API: GST_FIXME_OBJECT
API: GST_MEMDUMP_OBJECT
API: GST_FIXME
API: GST_MEMDUMP

15 years agodocs: xref more
Stefan Kost [Wed, 8 Apr 2009 15:13:42 +0000 (18:13 +0300)]
docs: xref more

15 years agotests: remove the hacks to workaround the pad-leak
Stefan Kost [Wed, 8 Apr 2009 14:49:18 +0000 (17:49 +0300)]
tests: remove the hacks to workaround the pad-leak

15 years agopadtemplate: enable code to fix the leak, now that the deps have been released
Stefan Kost [Wed, 8 Apr 2009 12:24:58 +0000 (15:24 +0300)]
padtemplate: enable code to fix the leak, now that the deps have been released

Good and ffmpeg are actually multiple releases beyond, so that this is now safe
to do.

15 years agoAutomatic update of common submodule
Felipe Contreras [Sat, 4 Apr 2009 18:18:23 +0000 (21:18 +0300)]
Automatic update of common submodule

From d0ea89e to b3941ea

15 years agoAutomatic update of common submodule
Edward Hervey [Sat, 4 Apr 2009 12:53:21 +0000 (14:53 +0200)]
Automatic update of common submodule

From f8b3d91 to d0ea89e

15 years agogst-inspect: remove dead assignment
Edward Hervey [Sat, 4 Apr 2009 12:42:04 +0000 (14:42 +0200)]
gst-inspect: remove dead assignment

first_flag will be either:
* rewritten without being read if we loop again (line 284)
* not read again if we don't loop

15 years agobasesink: Remove dead assignments.
Edward Hervey [Sat, 4 Apr 2009 12:39:51 +0000 (14:39 +0200)]
basesink: Remove dead assignments.

sstart/sstop/rstart/rstop are all either:
* assigned values later on before being used in 'do_times:' (EOS and buffers)
* not used (non-EOS events)

15 years agobasesrc: remove dead assignment.
Edward Hervey [Sat, 4 Apr 2009 12:38:52 +0000 (14:38 +0200)]
basesrc: remove dead assignment.

The variable will not be read before it's assigned a value line 942/945

15 years agogsttaglist: Remove unused variable.
Edward Hervey [Sat, 4 Apr 2009 12:37:13 +0000 (14:37 +0200)]
gsttaglist: Remove unused variable.

We don't need to allocate a variable if it's the return of a function call
and we only check it once.

15 years agogststructure: Only use methods used in g_* checks if glib checks are disabled
Edward Hervey [Sat, 4 Apr 2009 12:35:34 +0000 (14:35 +0200)]
gststructure: Only use methods used in g_* checks if glib checks are disabled

15 years agogst: Use g_once_init* or G_DEFINE_TYPE
Sebastian Dröge [Sat, 4 Apr 2009 08:59:39 +0000 (10:59 +0200)]
gst: Use g_once_init* or G_DEFINE_TYPE

15 years agogst: Use G_DEFINE_TYPE and friends or at least g_once_init_* in the _get_type() functions
Sebastian Dröge [Sat, 4 Apr 2009 08:20:36 +0000 (10:20 +0200)]
gst: Use G_DEFINE_TYPE and friends or at least g_once_init_* in the _get_type() functions

15 years agogst: Use G_DEFINE_TYPE and don't call g_thread_init() from class_init
Sebastian Dröge [Sat, 4 Apr 2009 08:18:42 +0000 (10:18 +0200)]
gst: Use G_DEFINE_TYPE and don't call g_thread_init() from class_init

class_init is too late for calling g_thread_init() as g_thread_init()
needs to be called before any GObject function.

15 years agoUse g_slice_copy instead of g_slice_dup.
Mark Nauwelaerts [Fri, 3 Apr 2009 11:46:18 +0000 (13:46 +0200)]
Use g_slice_copy instead of g_slice_dup.

A (buggy) glib g_slice_dup macro may cause compiler warnings on e.g. x86_64.

15 years agocontroller: remove dead assignment.
Edward Hervey [Fri, 3 Apr 2009 10:21:55 +0000 (12:21 +0200)]
controller: remove dead assignment.

The value of prop is being overwritten just after without being read.

15 years agogststructure: Remove dead assignment.
Edward Hervey [Fri, 3 Apr 2009 10:20:36 +0000 (12:20 +0200)]
gststructure: Remove dead assignment.

'type' is never used until line 1847 where it's overwritten.

15 years agoadapter: remove dead assignment.
Edward Hervey [Fri, 3 Apr 2009 10:19:40 +0000 (12:19 +0200)]
adapter: remove dead assignment.

The value set to to_copy at that line is never used, and is overwritten
further down before being read.