mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
jack: added translatable text for server not found error
This commit is contained in:
parent
3cb4a7aefd
commit
0f9a31880a
3 changed files with 15 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
plugin_LTLIBRARIES = libgstjack.la
|
plugin_LTLIBRARIES = libgstjack.la
|
||||||
|
|
||||||
libgstjack_la_SOURCES = gstjackutil.c gstjack.c gstjackaudiosrc.c gstjackaudiosink.c gstjackaudioclient.c
|
libgstjack_la_SOURCES = gstjackutil.c gstjack.c gstjackaudiosrc.c gstjackaudiosink.c gstjackaudioclient.c
|
||||||
libgstjack_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(JACK_CFLAGS)
|
libgstjack_la_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) $(JACK_CFLAGS)
|
||||||
libgstjack_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(JACK_LIBS)
|
libgstjack_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_MAJORMINOR) $(JACK_LIBS)
|
||||||
libgstjack_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstjack_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstjack_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstjack_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
|
@ -55,6 +55,11 @@
|
||||||
* Last reviewed on 2006-11-30 (0.10.4)
|
* Last reviewed on 2006-11-30 (0.10.4)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <gst/gst-i18n-plugin.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -350,7 +355,8 @@ could_not_open:
|
||||||
{
|
{
|
||||||
if (status & JackServerFailed) {
|
if (status & JackServerFailed) {
|
||||||
GST_ELEMENT_ERROR (sink, RESOURCE, NOT_FOUND,
|
GST_ELEMENT_ERROR (sink, RESOURCE, NOT_FOUND,
|
||||||
(NULL), ("Cannot connect to the Jack server (status %d)", status));
|
(_("Jack server not found")),
|
||||||
|
("Cannot connect to the Jack server (status %d)", status));
|
||||||
} else {
|
} else {
|
||||||
GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE,
|
GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE,
|
||||||
(NULL), ("Jack client open error (status %d)", status));
|
(NULL), ("Jack client open error (status %d)", status));
|
||||||
|
|
|
@ -74,7 +74,11 @@
|
||||||
* Last reviewed on 2008-07-22 (0.10.4)
|
* Last reviewed on 2008-07-22 (0.10.4)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gst/gst.h>
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <gst/gst-i18n-plugin.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
@ -357,7 +361,8 @@ could_not_open:
|
||||||
{
|
{
|
||||||
if (status & JackServerFailed) {
|
if (status & JackServerFailed) {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
|
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND,
|
||||||
(NULL), ("Cannot connect to the Jack server (status %d)", status));
|
(_("Jack server not found")),
|
||||||
|
("Cannot connect to the Jack server (status %d)", status));
|
||||||
} else {
|
} else {
|
||||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_WRITE,
|
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_WRITE,
|
||||||
(NULL), ("Jack client open error (status %d)", status));
|
(NULL), ("Jack client open error (status %d)", status));
|
||||||
|
@ -670,7 +675,6 @@ static GstRingBuffer *gst_jack_audio_src_create_ringbuffer (GstBaseAudioSrc *
|
||||||
static void
|
static void
|
||||||
gst_jack_audio_src_base_init (gpointer gclass)
|
gst_jack_audio_src_base_init (gpointer gclass)
|
||||||
{
|
{
|
||||||
|
|
||||||
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
|
GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
|
||||||
|
|
||||||
gst_element_class_add_pad_template (element_class,
|
gst_element_class_add_pad_template (element_class,
|
||||||
|
|
Loading…
Reference in a new issue