From: <tp...@ke...> - 2006-10-03 19:13:57
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: tpm Date: Tue Oct 03 2006 19:13:48 UTC Log message: * gst/gstbus.c: (gst_bus_class_init), (gst_bus_post): More docs for the sync-message signal (mention that it is not emitted by default); log message structures of messages posted on the bus as well. Modified files: . : ChangeLog gst : gstbus.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.2845&r2=1.2846 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gstbus.c.diff?r1=1.59&r2=1.60 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.2845 retrieving revision 1.2846 diff -u -d -r1.2845 -r1.2846 --- ChangeLog 3 Oct 2006 15:10:51 -0000 1.2845 +++ ChangeLog 3 Oct 2006 19:13:36 -0000 1.2846 @@ -1,3 +1,10 @@ +2006-10-03 Tim-Philipp Müller <tim at centricular dot net> + + * gst/gstbus.c: (gst_bus_class_init), (gst_bus_post): + More docs for the sync-message signal (mention that it is not + emitted by default); log message structures of messages posted on + the bus as well. 2006-10-03 Jan Schmidt <th...@ma...> * gst/gst.c: (ensure_current_registry_forking): Index: gstbus.c RCS file: /cvs/gstreamer/gstreamer/gst/gstbus.c,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- gstbus.c 21 Jun 2006 10:01:58 -0000 1.59 +++ gstbus.c 3 Oct 2006 19:13:36 -0000 1.60 @@ -184,6 +184,13 @@ * * A message has been posted on the bus. This signal is emitted from the * thread that posted the message so one has to be careful with locking. + * + * This signal will not be emitted by default, you have to set up + * gst_bus_sync_signal_handler() as a sync handler if you want this + * signal to be emitted when a message is posted on the bus, like this: + * <programlisting> + * gst_bus_set_sync_handler (bus, gst_bus_sync_signal_handler, yourdata); + * </programlisting> */ gst_bus_signals[SYNC_MESSAGE] = g_signal_new ("sync-message", G_TYPE_FROM_CLASS (klass), @@ -319,8 +326,8 @@ g_return_val_if_fail (GST_IS_BUS (bus), FALSE); g_return_val_if_fail (GST_IS_MESSAGE (message), FALSE); - GST_DEBUG_OBJECT (bus, "[msg %p] posting on bus, type %s", - message, GST_MESSAGE_TYPE_NAME (message)); + GST_DEBUG_OBJECT (bus, "[msg %p] posting on bus, type %s, %" GST_PTR_FORMAT, + message, GST_MESSAGE_TYPE_NAME (message), message->structure); GST_OBJECT_LOCK (bus); /* check if the bus is flushing */ |