From 013b77e072827be80f230e6c74fdac06f6a8f84c Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 9 Jun 2005 13:33:00 +0000 Subject: [PATCH] gst/elements/gstfakesrc.c: fix debug output Original commit message from CVS: * gst/elements/gstfakesrc.c: (gst_fakesrc_create): fix debug output * gst/schedulers/Makefile.am: use libgst prefix * gstreamer.spec.in: fix spec for it --- gst/elements/gstfakesrc.c | 10 +++++++--- gst/schedulers/Makefile.am | 10 +++++----- gstreamer.spec.in | 2 +- plugins/elements/gstfakesrc.c | 10 +++++++--- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/gst/elements/gstfakesrc.c b/gst/elements/gstfakesrc.c index 9695549d74..e020726fc1 100644 --- a/gst/elements/gstfakesrc.c +++ b/gst/elements/gstfakesrc.c @@ -691,9 +691,13 @@ gst_fakesrc_create (GstBaseSrc * basesrc, guint64 offset, guint length, g_free (src->last_message); src->last_message = - g_strdup_printf ("get ******* > (%d bytes, %" - G_GUINT64_FORMAT " ) %p", - GST_BUFFER_SIZE (buf), GST_BUFFER_TIMESTAMP (buf), buf); + g_strdup_printf ("get ******* > (%d bytes, timestamp: %" + GST_TIME_FORMAT ", duration: %" GST_TIME_FORMAT ", offset: %" + G_GINT64_FORMAT ", offset_end: %" G_GINT64_FORMAT ", flags: %d) %p", + GST_BUFFER_SIZE (buf), + GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)), + GST_TIME_ARGS (GST_BUFFER_DURATION (buf)), GST_BUFFER_OFFSET (buf), + GST_BUFFER_OFFSET_END (buf), GST_MINI_OBJECT (buf)->flags, buf); g_object_notify (G_OBJECT (src), "last_message"); } diff --git a/gst/schedulers/Makefile.am b/gst/schedulers/Makefile.am index 045f32ce18..022a0a3a99 100644 --- a/gst/schedulers/Makefile.am +++ b/gst/schedulers/Makefile.am @@ -1,11 +1,11 @@ plugin_LTLIBRARIES = \ - libthreadscheduler.la + libgstthreadscheduler.la -libthreadscheduler_la_SOURCES = threadscheduler.c -libthreadscheduler_la_CFLAGS = $(GST_OBJ_CFLAGS) -libthreadscheduler_la_LIBADD = $(GST_OBJ_LIBS) -libthreadscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) +libgstthreadscheduler_la_SOURCES = threadscheduler.c +libgstthreadscheduler_la_CFLAGS = $(GST_OBJ_CFLAGS) +libgstthreadscheduler_la_LIBADD = $(GST_OBJ_LIBS) +libgstthreadscheduler_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) noinst_HEADERS = diff --git a/gstreamer.spec.in b/gstreamer.spec.in index aa3fb9c18c..3100d604d2 100644 --- a/gstreamer.spec.in +++ b/gstreamer.spec.in @@ -140,7 +140,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/gstreamer-%{majorminor}/libgstgetbits.so %{_libdir}/gstreamer-%{majorminor}/libgstindexers.so %{_libdir}/gstreamer-%{majorminor}/libgstdataprotocol.so -%{_libdir}/gstreamer-%{majorminor}/libthreadscheduler.so +%{_libdir}/gstreamer-%{majorminor}/libgstthreadscheduler.so %{_bindir}/gst-complete-%{majorminor} %{_bindir}/gst-compprep-%{majorminor} diff --git a/plugins/elements/gstfakesrc.c b/plugins/elements/gstfakesrc.c index 9695549d74..e020726fc1 100644 --- a/plugins/elements/gstfakesrc.c +++ b/plugins/elements/gstfakesrc.c @@ -691,9 +691,13 @@ gst_fakesrc_create (GstBaseSrc * basesrc, guint64 offset, guint length, g_free (src->last_message); src->last_message = - g_strdup_printf ("get ******* > (%d bytes, %" - G_GUINT64_FORMAT " ) %p", - GST_BUFFER_SIZE (buf), GST_BUFFER_TIMESTAMP (buf), buf); + g_strdup_printf ("get ******* > (%d bytes, timestamp: %" + GST_TIME_FORMAT ", duration: %" GST_TIME_FORMAT ", offset: %" + G_GINT64_FORMAT ", offset_end: %" G_GINT64_FORMAT ", flags: %d) %p", + GST_BUFFER_SIZE (buf), + GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf)), + GST_TIME_ARGS (GST_BUFFER_DURATION (buf)), GST_BUFFER_OFFSET (buf), + GST_BUFFER_OFFSET_END (buf), GST_MINI_OBJECT (buf)->flags, buf); g_object_notify (G_OBJECT (src), "last_message"); }