fixes for compiling without debug

Original commit message from CVS:
fixes for compiling without debug
This commit is contained in:
Thomas Vander Stichele 2005-02-25 10:31:23 +00:00
parent 82f2011756
commit c44f710520
7 changed files with 169 additions and 99 deletions

View file

@ -1,3 +1,11 @@
2005-02-25 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstinfo.c:
* gst/gstinfo.h:
* gst/schedulers/faircothreads.c:
* gst/schedulers/fairscheduler.c:
fixes for compiling without debug
2005-02-25 tvainika+gnomebugs@cc.hut.fi
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -1116,6 +1116,17 @@ _gst_info_printf_extension_arginfo (const struct printf_info *info, size_t n,
#endif /* HAVE_PRINTF_EXTENSION */
#else /* !GST_DISABLE_GST_DEBUG */
guint
gst_debug_remove_log_function (GstLogFunction func)
{
return 0;
}
guint
gst_debug_remove_log_function_by_data (gpointer data)
{
return 0;
}
gboolean
__gst_in_valgrind (void)

View file

@ -616,9 +616,9 @@ G_CONST_RETURN gchar *
#define gst_debug_get_default_threshold() (GST_LEVEL_NONE)
#define gst_debug_level_get_name(level) ("NONE")
#define gst_debug_add_log_function(func,data) (FALSE)
#define gst_debug_remove_log_function(func) (0)
#define gst_debug_remove_log_function_by_data(data) (0)
#define gst_debug_add_log_function(func,data) /* NOP */
guint gst_debug_remove_log_function (GstLogFunction func);
guint gst_debug_remove_log_function_by_data (gpointer data);
#define gst_debug_set_active(active) /* NOP */
#define gst_debug_is_active() (FALSE)
#define gst_debug_set_colored(colored) /* NOP */

View file

@ -80,11 +80,13 @@ _syscall0 (pid_t, gettid)
};
#ifndef GST_DISABLE_GST_DEBUG
static gchar *gst_fairscheduler_ct_state_names[] = {
"stopped",
"suspended",
"running"
};
#endif
/*

View file

@ -782,8 +782,10 @@ gst_fair_scheduler_reset (GstScheduler * sched)
g_timer_stop (fsched->iter_timer);
{
#ifndef GST_DISABLE_GST_DEBUG
gulong msecs;
double elapsed = g_timer_elapsed (fsched->iter_timer, &msecs);
#endif
GST_INFO_OBJECT (fsched,
"%u iterations in %0.3fs, %.0f iterations/sec.",
@ -855,7 +857,9 @@ gst_fair_scheduler_add_element (GstScheduler * sched, GstElement * element)
static void
gst_fair_scheduler_remove_element (GstScheduler * sched, GstElement * element)
{
#ifndef GST_DISABLE_GST_DEBUG
GstFairScheduler *fsched = GST_FAIR_SCHEDULER (sched);
#endif
GstFairSchedulerPrivElem *priv = ELEM_PRIVATE (element);
if (GST_FLAG_IS_SET (element, GST_ELEMENT_DECOUPLED)) {
@ -998,7 +1002,9 @@ static void
gst_fair_scheduler_pad_unlink (GstScheduler * sched, GstPad * srcpad,
GstPad * sinkpad)
{
#ifndef GST_DISABLE_GST_DEBUG
GstFairScheduler *fsched = GST_FAIR_SCHEDULER (sched);
#endif
GstFairSchedulerPrivLink *priv;
GstElement *src_parent, *sink_parent;
@ -1051,7 +1057,9 @@ static GstElementStateReturn
gst_fair_scheduler_state_transition (GstScheduler * sched,
GstElement * element, gint transition)
{
#ifndef GST_DISABLE_GST_DEBUG
GstFairScheduler *fsched = GST_FAIR_SCHEDULER (sched);
#endif
gint old_state, new_state;
GST_DEBUG_OBJECT (sched, "Element %s changing from %s to %s",
@ -1111,7 +1119,9 @@ static void
gst_fair_scheduler_scheduling_change (GstScheduler * sched,
GstElement * element)
{
#ifndef GST_DISABLE_GST_DEBUG
GstFairScheduler *fsched = GST_FAIR_SCHEDULER (sched);
#endif
GST_WARNING_OBJECT (fsched, "operation not implemented");
}

112
po/nb.po
View file

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: gstreamer 0.8.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-12-17 16:11+0100\n"
"POT-Creation-Date: 2005-02-25 11:30+0100\n"
"PO-Revision-Date: 2005-02-17 12:00+0100\n"
"Last-Translator: Kjartan Maraas <kmaraas@broadpark.no>\n"
"Language-Team: Norwegian Bokmaal <i18n-nb@lister.ping.uio.no>\n"
@ -27,7 +27,8 @@ msgid "Print available debug categories and exit"
msgstr "Skriv ut tilgjengelige feilsøkingskategorier og avslutt"
#: gst/gst.c:169
msgid "Default debug level from 1 (only error) to 5 (anything) or 0 for no output"
msgid ""
"Default debug level from 1 (only error) to 5 (anything) or 0 for no output"
msgstr ""
#: gst/gst.c:171
@ -35,7 +36,9 @@ msgid "LEVEL"
msgstr "NIVÅ"
#: gst/gst.c:173
msgid "Comma-separated list of category_name:level pairs to set specific levels for the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3"
msgid ""
"Comma-separated list of category_name:level pairs to set specific levels for "
"the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3"
msgstr ""
#: gst/gst.c:176
@ -63,7 +66,9 @@ msgid "PATHS"
msgstr "STIER"
#: gst/gst.c:191
msgid "Comma-separated list of plugins to preload in addition to the list stored in envronment variable GST_PLUGIN_PATH"
msgid ""
"Comma-separated list of plugins to preload in addition to the list stored in "
"environment variable GST_PLUGIN_PATH"
msgstr ""
#: gst/gst.c:193
@ -96,12 +101,12 @@ msgstr ""
msgid "Scheduler to use (default is '%s')"
msgstr "Planlegger som skal brukes («%s» er forvalgt)"
#: gst/gstelement.c:261
#: gst/gstelement.c:312
#, c-format
msgid "ERROR: from element %s: %s\n"
msgstr "FEIL: fra element %s: %s\n"
#: gst/gstelement.c:263
#: gst/gstelement.c:314
#, c-format
msgid ""
"Additional debug info:\n"
@ -115,7 +120,9 @@ msgid "GStreamer encountered a general core library error."
msgstr ""
#: gst/gsterror.c:58 gst/gsterror.c:95 gst/gsterror.c:115 gst/gsterror.c:145
msgid "GStreamer developers were too lazy to assign an error code to this error. Please file a bug."
msgid ""
"GStreamer developers were too lazy to assign an error code to this error. "
"Please file a bug."
msgstr ""
#: gst/gsterror.c:61
@ -158,7 +165,7 @@ msgstr ""
msgid "Internal GStreamer error: tag problem. File a bug."
msgstr ""
#: gst/gsterror.c:93 gst/gsterror.c:113 gst/gsterror.c:143
#: gst/gsterror.c:93
msgid "GStreamer encountered a general supporting library error."
msgstr ""
@ -170,6 +177,10 @@ msgstr "Kunne ikke initiere støttebibliotek."
msgid "Could not close supporting library."
msgstr "Kunne ikke lukke støttebibliotek."
#: gst/gsterror.c:113
msgid "GStreamer encountered a general resource error."
msgstr ""
#: gst/gsterror.c:117
msgid "Resource not found."
msgstr "Ressursen ble ikke funnet."
@ -214,6 +225,10 @@ msgstr "Kunne ikke synkronisere på ressurs."
msgid "Could not get/set settings from/on resource."
msgstr "Kunne ikke hente/sette innstillinger fra/på ressurs."
#: gst/gsterror.c:143
msgid "GStreamer encountered a general stream error."
msgstr ""
#: gst/gsterror.c:148
msgid "Element doesn't implement handling of this stream. Please file a bug."
msgstr ""
@ -290,7 +305,8 @@ msgstr "dato"
#: gst/gsttag.c:95
msgid "date the data was created (in Julian calendar days)"
msgstr "dato for oppretting av dataene (kalenderdager i den Julianske kalenderen)"
msgstr ""
"dato for oppretting av dataene (kalenderdager i den Julianske kalenderen)"
#: gst/gsttag.c:98
msgid "genre"
@ -551,8 +567,8 @@ msgstr "Kunne ikke åpne fil «%s» for skriving."
msgid "Error closing file \"%s\"."
msgstr "Feil ved lukking av fil «%s»."
#: gst/elements/gstfilesink.c:364 gst/elements/gstfilesink.c:399
#: gst/elements/gstfilesink.c:452
#: gst/elements/gstfilesink.c:364 gst/elements/gstfilesink.c:400
#: gst/elements/gstfilesink.c:453
#, c-format
msgid "Error while writing to file \"%s\"."
msgstr "Feil ved skriving til fil «%s»."
@ -668,112 +684,114 @@ msgstr ""
msgid "Print all elements"
msgstr ""
#: tools/gst-launch.c:107
#: tools/gst-launch.c:114
#, c-format
msgid "Execution ended after %s iterations (sum %s ns, average %s ns, min %s ns, max %s ns).\n"
msgid ""
"Execution ended after %s iterations (sum %s ns, average %s ns, min %s ns, "
"max %s ns).\n"
msgstr ""
#: tools/gst-launch.c:134
#: tools/gst-launch.c:141
msgid "Usage: gst-xmllaunch <file.xml> [ element.property=value ... ]\n"
msgstr ""
#: tools/gst-launch.c:142
#: tools/gst-launch.c:149
#, c-format
msgid "ERROR: parse of xml file '%s' failed.\n"
msgstr ""
#: tools/gst-launch.c:148
#: tools/gst-launch.c:155
#, c-format
msgid "ERROR: no toplevel pipeline element in file '%s'.\n"
msgstr ""
#: tools/gst-launch.c:155
#: tools/gst-launch.c:162
#, c-format
msgid "WARNING: only one toplevel element is supported at this time."
msgstr ""
#: tools/gst-launch.c:166
#: tools/gst-launch.c:173
#, c-format
msgid "ERROR: could not parse command line argument %d: %s.\n"
msgstr ""
#: tools/gst-launch.c:177
#: tools/gst-launch.c:184
#, c-format
msgid "WARNING: element named '%s' not found.\n"
msgstr ""
#: tools/gst-launch.c:316
#: tools/gst-launch.c:327
#, c-format
msgid "FOUND TAG : found by element \"%s\".\n"
msgstr ""
#: tools/gst-launch.c:403
#: tools/gst-launch.c:412
msgid "Output tags (also known as metadata)"
msgstr ""
#: tools/gst-launch.c:405
#: tools/gst-launch.c:414
msgid "Output status information and property notifications"
msgstr ""
#: tools/gst-launch.c:407
#: tools/gst-launch.c:416
msgid "Do not output status information of TYPE"
msgstr ""
#: tools/gst-launch.c:407
#: tools/gst-launch.c:416
msgid "TYPE1,TYPE2,..."
msgstr "TYPE1,TYPE2,..."
#: tools/gst-launch.c:410
#: tools/gst-launch.c:419
msgid "Save xml representation of pipeline to FILE and exit"
msgstr ""
#: tools/gst-launch.c:410
#: tools/gst-launch.c:419
msgid "FILE"
msgstr "FIL"
#: tools/gst-launch.c:413
#: tools/gst-launch.c:422
msgid "Do not install a fault handler"
msgstr ""
#: tools/gst-launch.c:415
#: tools/gst-launch.c:424
msgid "Print alloc trace (if enabled at compile time)"
msgstr ""
#: tools/gst-launch.c:417
#: tools/gst-launch.c:426
msgid "Number of times to iterate pipeline"
msgstr ""
#: tools/gst-launch.c:487
#, c-format
msgid "ERROR: pipeline could not be constructed: %s.\n"
msgstr ""
#: tools/gst-launch.c:491
#, c-format
msgid "ERROR: pipeline could not be constructed.\n"
msgstr ""
#: tools/gst-launch.c:495
#, c-format
msgid "WARNING: erroneous pipeline: %s\n"
msgstr ""
#: tools/gst-launch.c:496
#, c-format
msgid "ERROR: pipeline could not be constructed: %s.\n"
msgstr ""
#: tools/gst-launch.c:500
#, c-format
msgid "ERROR: pipeline could not be constructed.\n"
msgstr ""
#: tools/gst-launch.c:504
#, c-format
msgid "WARNING: erroneous pipeline: %s\n"
msgstr ""
#: tools/gst-launch.c:505
#, c-format
msgid " Trying to run anyway.\n"
msgstr ""
#: tools/gst-launch.c:523
#: tools/gst-launch.c:532
#, c-format
msgid "ERROR: the 'pipeline' element wasn't found.\n"
msgstr ""
#: tools/gst-launch.c:530
#: tools/gst-launch.c:539
#, c-format
msgid "RUNNING pipeline ...\n"
msgstr ""
#: tools/gst-launch.c:533
#: tools/gst-launch.c:542
#, c-format
msgid "ERROR: pipeline doesn't want to play.\n"
msgstr ""

119
po/ru.po
View file

@ -7,14 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: gstreamer 0.8.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-12-17 16:11+0100\n"
"POT-Creation-Date: 2005-02-25 11:30+0100\n"
"PO-Revision-Date: 2005-02-12 23:37+0300\n"
"Last-Translator: Peter Astakhov <astakhovp@mail.ru>\n"
"Language-Team: Russian <ru@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%"
"100<10||n%100>=20)?1:2);\n"
"X-Generator: KBabel 1.9.1\n"
#: gst/gst.c:160
@ -30,15 +31,20 @@ msgid "Print available debug categories and exit"
msgstr "Печатает доступные категории отладки и выходит"
#: gst/gst.c:169
msgid "Default debug level from 1 (only error) to 5 (anything) or 0 for no output"
msgstr "Уровень отладки по умолчанию от 1 (только ошибки) до 5(все) или 0 - ничего не печатать"
msgid ""
"Default debug level from 1 (only error) to 5 (anything) or 0 for no output"
msgstr ""
"Уровень отладки по умолчанию от 1 (только ошибки) до 5(все) или 0 - ничего "
"не печатать"
#: gst/gst.c:171
msgid "LEVEL"
msgstr "УРОВЕНЬ"
#: gst/gst.c:173
msgid "Comma-separated list of category_name:level pairs to set specific levels for the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3"
msgid ""
"Comma-separated list of category_name:level pairs to set specific levels for "
"the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3"
msgstr ""
#: gst/gst.c:176
@ -66,7 +72,9 @@ msgid "PATHS"
msgstr "ПУТИ"
#: gst/gst.c:191
msgid "Comma-separated list of plugins to preload in addition to the list stored in envronment variable GST_PLUGIN_PATH"
msgid ""
"Comma-separated list of plugins to preload in addition to the list stored in "
"environment variable GST_PLUGIN_PATH"
msgstr ""
#: gst/gst.c:193
@ -99,12 +107,12 @@ msgstr "список путей для загрузки расширений (р
msgid "Scheduler to use (default is '%s')"
msgstr ""
#: gst/gstelement.c:261
#: gst/gstelement.c:312
#, c-format
msgid "ERROR: from element %s: %s\n"
msgstr "ОШИБКА: из элемента %s: %s\n"
#: gst/gstelement.c:263
#: gst/gstelement.c:314
#, c-format
msgid ""
"Additional debug info:\n"
@ -118,7 +126,9 @@ msgid "GStreamer encountered a general core library error."
msgstr ""
#: gst/gsterror.c:58 gst/gsterror.c:95 gst/gsterror.c:115 gst/gsterror.c:145
msgid "GStreamer developers were too lazy to assign an error code to this error. Please file a bug."
msgid ""
"GStreamer developers were too lazy to assign an error code to this error. "
"Please file a bug."
msgstr ""
#: gst/gsterror.c:61
@ -161,7 +171,7 @@ msgstr ""
msgid "Internal GStreamer error: tag problem. File a bug."
msgstr ""
#: gst/gsterror.c:93 gst/gsterror.c:113 gst/gsterror.c:143
#: gst/gsterror.c:93
msgid "GStreamer encountered a general supporting library error."
msgstr ""
@ -173,6 +183,10 @@ msgstr "Не могу проинициализировать дополните
msgid "Could not close supporting library."
msgstr "Не могу закрыть дополнительную библиотеку."
#: gst/gsterror.c:113
msgid "GStreamer encountered a general resource error."
msgstr ""
#: gst/gsterror.c:117
msgid "Resource not found."
msgstr "Ресурс не найден."
@ -217,6 +231,10 @@ msgstr ""
msgid "Could not get/set settings from/on resource."
msgstr ""
#: gst/gsterror.c:143
msgid "GStreamer encountered a general stream error."
msgstr ""
#: gst/gsterror.c:148
msgid "Element doesn't implement handling of this stream. Please file a bug."
msgstr ""
@ -554,8 +572,8 @@ msgstr ""
msgid "Error closing file \"%s\"."
msgstr ""
#: gst/elements/gstfilesink.c:364 gst/elements/gstfilesink.c:399
#: gst/elements/gstfilesink.c:452
#: gst/elements/gstfilesink.c:364 gst/elements/gstfilesink.c:400
#: gst/elements/gstfilesink.c:453
#, c-format
msgid "Error while writing to file \"%s\"."
msgstr ""
@ -671,112 +689,115 @@ msgstr ""
msgid "Print all elements"
msgstr "Печатать все элементы"
#: tools/gst-launch.c:107
#: tools/gst-launch.c:114
#, c-format
msgid "Execution ended after %s iterations (sum %s ns, average %s ns, min %s ns, max %s ns).\n"
msgid ""
"Execution ended after %s iterations (sum %s ns, average %s ns, min %s ns, "
"max %s ns).\n"
msgstr ""
#: tools/gst-launch.c:134
#: tools/gst-launch.c:141
msgid "Usage: gst-xmllaunch <file.xml> [ element.property=value ... ]\n"
msgstr "Использование: gst-xmllaunch <файл.xml> [ элемент.поле=значение ... ]\n"
msgstr ""
"Использование: gst-xmllaunch <файл.xml> [ элемент.поле=значение ... ]\n"
#: tools/gst-launch.c:142
#: tools/gst-launch.c:149
#, c-format
msgid "ERROR: parse of xml file '%s' failed.\n"
msgstr "ОШИБКА: не могу разобрать xml файл '%s'.\n"
#: tools/gst-launch.c:148
#: tools/gst-launch.c:155
#, c-format
msgid "ERROR: no toplevel pipeline element in file '%s'.\n"
msgstr ""
#: tools/gst-launch.c:155
#: tools/gst-launch.c:162
#, c-format
msgid "WARNING: only one toplevel element is supported at this time."
msgstr ""
#: tools/gst-launch.c:166
#: tools/gst-launch.c:173
#, c-format
msgid "ERROR: could not parse command line argument %d: %s.\n"
msgstr "ОШИБКА: не могу разобрать аргумент командной строки %d: %s.\n"
#: tools/gst-launch.c:177
#: tools/gst-launch.c:184
#, c-format
msgid "WARNING: element named '%s' not found.\n"
msgstr "ПРЕДУПРЕЖДЕНИЕ: элемент '%s' не найден.\n"
#: tools/gst-launch.c:316
#: tools/gst-launch.c:327
#, c-format
msgid "FOUND TAG : found by element \"%s\".\n"
msgstr ""
#: tools/gst-launch.c:403
#: tools/gst-launch.c:412
msgid "Output tags (also known as metadata)"
msgstr "Выводить тэги (такжи называемые 'метаданные')"
#: tools/gst-launch.c:405
#: tools/gst-launch.c:414
msgid "Output status information and property notifications"
msgstr ""
#: tools/gst-launch.c:407
#: tools/gst-launch.c:416
msgid "Do not output status information of TYPE"
msgstr ""
#: tools/gst-launch.c:407
#: tools/gst-launch.c:416
msgid "TYPE1,TYPE2,..."
msgstr "ТИП1, ТИП2,..."
#: tools/gst-launch.c:410
#: tools/gst-launch.c:419
msgid "Save xml representation of pipeline to FILE and exit"
msgstr ""
#: tools/gst-launch.c:410
#: tools/gst-launch.c:419
msgid "FILE"
msgstr "ФАЙЛ"
#: tools/gst-launch.c:413
#: tools/gst-launch.c:422
msgid "Do not install a fault handler"
msgstr "Не устанавливать ошибочный обработчик"
#: tools/gst-launch.c:415
#: tools/gst-launch.c:424
msgid "Print alloc trace (if enabled at compile time)"
msgstr ""
#: tools/gst-launch.c:417
#: tools/gst-launch.c:426
msgid "Number of times to iterate pipeline"
msgstr ""
#: tools/gst-launch.c:487
#, c-format
msgid "ERROR: pipeline could not be constructed: %s.\n"
msgstr ""
#: tools/gst-launch.c:491
#, c-format
msgid "ERROR: pipeline could not be constructed.\n"
msgstr ""
#: tools/gst-launch.c:495
#, c-format
msgid "WARNING: erroneous pipeline: %s\n"
msgstr ""
#: tools/gst-launch.c:496
#, c-format
msgid "ERROR: pipeline could not be constructed: %s.\n"
msgstr ""
#: tools/gst-launch.c:500
#, c-format
msgid "ERROR: pipeline could not be constructed.\n"
msgstr ""
#: tools/gst-launch.c:504
#, c-format
msgid "WARNING: erroneous pipeline: %s\n"
msgstr ""
#: tools/gst-launch.c:505
#, c-format
msgid " Trying to run anyway.\n"
msgstr " Все равно пытаюсь запустить.\n"
#: tools/gst-launch.c:523
#: tools/gst-launch.c:532
#, c-format
msgid "ERROR: the 'pipeline' element wasn't found.\n"
msgstr ""
#: tools/gst-launch.c:530
#: tools/gst-launch.c:539
#, c-format
msgid "RUNNING pipeline ...\n"
msgstr ""
#: tools/gst-launch.c:533
#: tools/gst-launch.c:542
#, c-format
msgid "ERROR: pipeline doesn't want to play.\n"
msgstr ""