From 79991c29b1e3d1caa3b720ef1da3749a8a5e188e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 23 Nov 2005 11:22:39 +0000 Subject: [PATCH] gst/gsterror.*: Add error for clock stuff. Original commit message from CVS: * gst/gsterror.c: (_gst_core_errors_init): * gst/gsterror.h: Add error for clock stuff. * gst/gstpipeline.c: (gst_pipeline_change_state), (gst_pipeline_set_clock): Post clock error when clock cannot be used in a pipeline. --- ChangeLog | 10 ++++++++++ gst/gsterror.c | 2 ++ gst/gsterror.h | 2 ++ gst/gstpipeline.c | 6 +++++- po/af.po | 6 +++--- po/az.po | 6 +++--- po/ca.po | 6 +++--- po/cs.po | 6 +++--- po/de.po | 6 +++--- po/en_GB.po | 6 +++--- po/fr.po | 6 +++--- po/it.po | 6 +++--- po/nb.po | 6 +++--- po/nl.po | 6 +++--- po/ru.po | 6 +++--- po/sq.po | 6 +++--- po/sr.po | 6 +++--- po/sv.po | 6 +++--- po/tr.po | 6 +++--- po/uk.po | 6 +++--- po/vi.po | 6 +++--- 21 files changed, 70 insertions(+), 52 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b96a63bb3..49bf9ee86f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2005-11-23 Wim Taymans + + * gst/gsterror.c: (_gst_core_errors_init): + * gst/gsterror.h: + Add error for clock stuff. + + * gst/gstpipeline.c: (gst_pipeline_change_state), + (gst_pipeline_set_clock): + Post clock error when clock cannot be used in a pipeline. + 2005-11-23 Stefan Kost * docs/gst/gstreamer-sections.txt: diff --git a/gst/gsterror.c b/gst/gsterror.c index 7b837c3175..7c50ec3487 100644 --- a/gst/gsterror.c +++ b/gst/gsterror.c @@ -151,6 +151,8 @@ _gst_core_errors_init (void) TABLE (t, CORE, TAG, N_("Internal GStreamer error: tag problem." FILE_A_BUG)); TABLE (t, CORE, MISSING_PLUGIN, N_("Your GStreamer installation is missing a plug-in.")); + TABLE (t, CORE, CLOCK, + N_("Internal GStreamer error: clock problem." FILE_A_BUG)); return t; } diff --git a/gst/gsterror.h b/gst/gsterror.h index b1952d359b..ea48330f2c 100644 --- a/gst/gsterror.h +++ b/gst/gsterror.h @@ -51,6 +51,7 @@ G_BEGIN_DECLS * @GST_CORE_ERROR_CAPS: used for caps-related errors. * @GST_CORE_ERROR_TAG: used for negotiation-related errors. * @GST_CORE_ERROR_MISSING_PLUGIN: used if a plugin is missing. + * @GST_CORE_ERROR_CLOCK: used for clock related errors. * @GST_CORE_ERROR_NUM_ERRORS: the number of core error types. * * Core errors are errors inside the core GStreamer library. @@ -71,6 +72,7 @@ typedef enum GST_CORE_ERROR_CAPS, GST_CORE_ERROR_TAG, GST_CORE_ERROR_MISSING_PLUGIN, + GST_CORE_ERROR_CLOCK, GST_CORE_ERROR_NUM_ERRORS } GstCoreError; diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c index 1d73b76969..97bb9b9fe6 100644 --- a/gst/gstpipeline.c +++ b/gst/gstpipeline.c @@ -44,6 +44,8 @@ */ #include "gst_private.h" +#include "gsterror.h" +#include "gst-i18n-lib.h" #include "gstpipeline.h" #include "gstinfo.h" @@ -425,7 +427,9 @@ gst_pipeline_change_state (GstElement * element, GstStateChange transition) invalid_clock: { - /* FIXME, post error message */ + GST_ELEMENT_ERROR (pipeline, CORE, CLOCK, + (_("Selected clock cannot be used in pipeline.")), + ("Pipeline cannot operate with selected clock")); GST_DEBUG_OBJECT (pipeline, "Pipeline cannot operate with selected clock %p", clock); return GST_STATE_CHANGE_FAILURE; diff --git a/po/af.po b/po/af.po index 9714cfd67e..bf63e29ddb 100644 --- a/po/af.po +++ b/po/af.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-03-24 11:28+0200\n" "Last-Translator: Petri Jooste \n" "Language-Team: Afrikaans \n" @@ -278,12 +278,12 @@ msgstr "Kon nie stroom demultiplekseer nie." msgid "Could not multiplex stream." msgstr "Kon nie stroom multiplekseer nie." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Geen foutboodskap vir domein %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Geen standaard foutboodskap vir domein %s en kode %d." diff --git a/po/az.po b/po/az.po index f5ad0eee33..d91343e96e 100644 --- a/po/az.po +++ b/po/az.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer-0.8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-03-19 18:40+0200\n" "Last-Translator: Metin Amiroff \n" "Language-Team: Azerbaijani \n" @@ -248,12 +248,12 @@ msgstr "" msgid "Could not multiplex stream." msgstr "" -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "" -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "" diff --git a/po/ca.po b/po/ca.po index 4072b1f342..635b1da343 100644 --- a/po/ca.po +++ b/po/ca.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.7pre2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-12-22 17:44+0100\n" "Last-Translator: Jordi Mallach \n" "Language-Team: Catalan \n" @@ -293,12 +293,12 @@ msgstr "No s'ha pogut demultiplexar el flux." msgid "Could not multiplex stream." msgstr "No s'ha pogut multiplexar el flux." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "No hi ha cap missatge d'error per al domini %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "" diff --git a/po/cs.po b/po/cs.po index 825032bd17..6a2f289784 100644 --- a/po/cs.po +++ b/po/cs.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.7pre2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-12-27 17:23+0100\n" "Last-Translator: Miloslav Trmac \n" "Language-Team: Czech \n" @@ -273,12 +273,12 @@ msgstr "Nemohu demultiplexovat proud." msgid "Could not multiplex stream." msgstr "Nemohu multiplexovat proud." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Pro doménu %s není zpráva o chybě." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Pro doménu %s a kód %d není standardní zpráva o chybě." diff --git a/po/de.po b/po/de.po index 9d566d82f2..753f864f7f 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-06-05 09:32+0100\n" "Last-Translator: Roland Illig \n" "Language-Team: German \n" @@ -300,12 +300,12 @@ msgstr "Konnte den Datenstrom nicht Demultiplexen." msgid "Could not multiplex stream." msgstr "Konnte den Datenstrom nicht multiplexen." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Keine Fehlermeldung für den Bereich %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Keine Standardfehlermeldung für den Bereich %s und Fehlercode %d." diff --git a/po/en_GB.po b/po/en_GB.po index 0395d972e4..4cbe7eb1b3 100644 --- a/po/en_GB.po +++ b/po/en_GB.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-04-26 10:36-0400\n" "Last-Translator: Gareth Owen \n" "Language-Team: English (British) \n" @@ -267,12 +267,12 @@ msgstr "Could not demultiplex stream." msgid "Could not multiplex stream." msgstr "Could not multiplex stream." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "No error message for domain %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "No standard error message for domain %s and code %d." diff --git a/po/fr.po b/po/fr.po index 9c66ded53d..9507655444 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: GStreamer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-01-13 16:52+0100\n" "Last-Translator: Julien Moutte \n" "Language-Team: French \n" @@ -275,12 +275,12 @@ msgstr "Echoué a déterminer le type du flux" msgid "Could not multiplex stream." msgstr "Echoué a déterminer le type du flux" -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "" -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "" diff --git a/po/it.po b/po/it.po index 70f5d27b20..c783298da4 100644 --- a/po/it.po +++ b/po/it.po @@ -108,7 +108,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.7pre2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-12-21 08:23+0100\n" "Last-Translator: Luca Ferretti \n" "Language-Team: Italian \n" @@ -378,12 +378,12 @@ msgstr "Impossibile de-multiplare lo stream." msgid "Could not multiplex stream." msgstr "Impossibile multiplare lo stream." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Nessun messaggio d'errore per il dominio %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Nessun messaggio d'errore standard per il dominio %s ed il codice %d." diff --git a/po/nb.po b/po/nb.po index 44f6310104..4132b3a839 100644 --- a/po/nb.po +++ b/po/nb.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.8\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2005-02-17 12:00+0100\n" "Last-Translator: Kjartan Maraas \n" "Language-Team: Norwegian Bokmaal \n" @@ -248,12 +248,12 @@ msgstr "Kunne ikke bryte opp strøm." msgid "Could not multiplex stream." msgstr "Kunne ikke sette sammen strøm." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Ingen feilmelding for domene %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Ingen standard feilmelding for domene %s og kode %d." diff --git a/po/nl.po b/po/nl.po index 6b399eb159..2fc168fc56 100644 --- a/po/nl.po +++ b/po/nl.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: GStreamer\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-01-13 12:03+0100\n" "Last-Translator: Thomas Vander Stichele \n" "Language-Team: Dutch \n" @@ -274,12 +274,12 @@ msgstr "Kon de stroom niet demultiplexen." msgid "Could not multiplex stream." msgstr "Kon de stroom niet multiplexen." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Geen foutboodschap voor domein %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Geen standaard foutboodschap voor domein %s en code %d." diff --git a/po/ru.po b/po/ru.po index 859ed1927c..f8a607dab5 100644 --- a/po/ru.po +++ b/po/ru.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.8\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2005-02-12 23:37+0300\n" "Last-Translator: Peter Astakhov \n" "Language-Team: Russian \n" @@ -254,12 +254,12 @@ msgstr "" msgid "Could not multiplex stream." msgstr "" -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "" -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "" diff --git a/po/sq.po b/po/sq.po index a9c82de5e4..31cec88039 100644 --- a/po/sq.po +++ b/po/sq.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-08-07 23:46+0200\n" "Last-Translator: Laurent Dhima \n" "Language-Team: Albanian \n" @@ -273,12 +273,12 @@ msgstr "I pamundur demultipleksimi i stream." msgid "Could not multiplex stream." msgstr "I pamundur multipleksimi i vazhdës." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Asnjë mesazh gabimi për domain %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Asnjë mesazh gabimi standart për domain %s dhe kodin %d." diff --git a/po/sr.po b/po/sr.po index 6062e94b18..bc09aae132 100644 --- a/po/sr.po +++ b/po/sr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.7.6\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-03-13 01:47+0100\n" "Last-Translator: Danilo Segan \n" "Language-Team: Serbian \n" @@ -276,12 +276,12 @@ msgstr "Не могу да разградим ток." msgid "Could not multiplex stream." msgstr "Не могу да изградим ток." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Нема поруке о грешци за домен %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Нема обичне поруке о грешци за домен %s и код %d." diff --git a/po/sv.po b/po/sv.po index a11ce47839..4befd38d9e 100644 --- a/po/sv.po +++ b/po/sv.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.7pre2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-12-21 14:49+0100\n" "Last-Translator: Christian Rose \n" "Language-Team: Swedish \n" @@ -277,12 +277,12 @@ msgstr "Kunde inte avmultiplexera flöde." msgid "Could not multiplex stream." msgstr "Kunde inte multiplexera flöde." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Inget felmeddelande för domänen %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Inget standardfelmeddelande för domänen %s och koden %d." diff --git a/po/tr.po b/po/tr.po index ded2d961da..d7f33bc548 100644 --- a/po/tr.po +++ b/po/tr.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-04-03 03:14+0300\n" "Last-Translator: Baris Cicek \n" "Language-Team: Turkish \n" @@ -273,12 +273,12 @@ msgstr "Akım çoklaması geriye alınamadı." msgid "Could not multiplex stream." msgstr "Akım çoklandırılamadı." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "%s etki alanı için hiç hata iletisi yok." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "%s etki alanı ve %d kodu için standart hata iletisi yok." diff --git a/po/uk.po b/po/uk.po index 90c3a6ab0b..505f2a427e 100644 --- a/po/uk.po +++ b/po/uk.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2004-08-03 10:53+0200\n" "Last-Translator: Maxim V. Dziumanenko \n" "Language-Team: Ukrainian \n" @@ -278,12 +278,12 @@ msgstr "Не вдається демультиплексувати потік." msgid "Could not multiplex stream." msgstr "Не вдається мультиплексувати потік." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Немає повідомлення про помилку для домену %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Немає стандартного повідомлення про помилку для домену %s та коду %d." diff --git a/po/vi.po b/po/vi.po index 95dbc85f2b..c31d874541 100644 --- a/po/vi.po +++ b/po/vi.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: gstreamer 0.8.8\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-11-11 17:35+0100\n" +"POT-Creation-Date: 2005-11-14 12:10+0100\n" "PO-Revision-Date: 2005-02-05 16:35+1030\n" "Last-Translator: Clytie Siddall \n" "Language-Team: Vietnamese \n" @@ -276,12 +276,12 @@ msgstr "" "Không phối hợp được dòng ấy với dòng khác để truyền thông qua một kênh riêng " "lẻ." -#: gst/gsterror.c:213 +#: gst/gsterror.c:214 #, c-format msgid "No error message for domain %s." msgstr "Không có thông điệp lỗi cho miền %s." -#: gst/gsterror.c:221 +#: gst/gsterror.c:222 #, c-format msgid "No standard error message for domain %s and code %d." msgstr "Không có thông điệp chuẩn cho miền %s và mã %d."