mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 16:48:11 +00:00
When posting a warning message because samples were dropped, post something more intelligible than he default error m...
Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosrc.c: (_do_init), (gst_base_audio_src_create): * po/POTFILES.in: When posting a warning message because samples were dropped, post something more intelligible than he default error message for clock errors which is just confusing in this context (#432984).
This commit is contained in:
parent
f5c743b069
commit
9e873a3c83
3 changed files with 30 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2007-04-25 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/audio/gstbaseaudiosrc.c: (_do_init),
|
||||||
|
(gst_base_audio_src_create):
|
||||||
|
* po/POTFILES.in:
|
||||||
|
When posting a warning message because samples were dropped, post
|
||||||
|
something more intelligible than he default error message for clock
|
||||||
|
errors which is just confusing in this context (#432984).
|
||||||
|
|
||||||
2007-04-25 Wim Taymans <wim@fluendo.com>
|
2007-04-25 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst-libs/gst/rtp/gstrtcpbuffer.c: (gst_rtcp_buffer_new),
|
* gst-libs/gst/rtp/gstrtcpbuffer.c: (gst_rtcp_buffer_new),
|
||||||
|
|
|
@ -32,10 +32,16 @@
|
||||||
* Last reviewed on 2006-09-27 (0.10.12)
|
* Last reviewed on 2006-09-27 (0.10.12)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include "config.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "gstbaseaudiosrc.h"
|
#include "gstbaseaudiosrc.h"
|
||||||
|
|
||||||
|
#include "gst/gst-i18n-plugin.h"
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_base_audio_src_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_base_audio_src_debug);
|
||||||
#define GST_CAT_DEFAULT gst_base_audio_src_debug
|
#define GST_CAT_DEFAULT gst_base_audio_src_debug
|
||||||
|
|
||||||
|
@ -56,8 +62,18 @@ enum
|
||||||
PROP_LATENCY_TIME,
|
PROP_LATENCY_TIME,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define _do_init(bla) \
|
static void
|
||||||
GST_DEBUG_CATEGORY_INIT (gst_base_audio_src_debug, "baseaudiosrc", 0, "baseaudiosrc element");
|
_do_init (GType type)
|
||||||
|
{
|
||||||
|
GST_DEBUG_CATEGORY_INIT (gst_base_audio_src_debug, "baseaudiosrc", 0,
|
||||||
|
"baseaudiosrc element");
|
||||||
|
|
||||||
|
#ifdef ENABLE_NLS
|
||||||
|
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
||||||
|
LOCALEDIR);
|
||||||
|
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||||
|
#endif /* ENABLE_NLS */
|
||||||
|
}
|
||||||
|
|
||||||
GST_BOILERPLATE_FULL (GstBaseAudioSrc, gst_base_audio_src, GstPushSrc,
|
GST_BOILERPLATE_FULL (GstBaseAudioSrc, gst_base_audio_src, GstPushSrc,
|
||||||
GST_TYPE_PUSH_SRC, _do_init);
|
GST_TYPE_PUSH_SRC, _do_init);
|
||||||
|
@ -579,7 +595,8 @@ gst_base_audio_src_create (GstBaseSrc * bsrc, guint64 offset, guint length,
|
||||||
GST_WARNING_OBJECT (src,
|
GST_WARNING_OBJECT (src,
|
||||||
"create DISCONT of %" G_GUINT64_FORMAT " samples at sample %"
|
"create DISCONT of %" G_GUINT64_FORMAT " samples at sample %"
|
||||||
G_GUINT64_FORMAT, sample - src->next_sample, sample);
|
G_GUINT64_FORMAT, sample - src->next_sample, sample);
|
||||||
GST_ELEMENT_WARNING (src, CORE, CLOCK, (NULL),
|
GST_ELEMENT_WARNING (src, CORE, CLOCK,
|
||||||
|
(_("Can't record audio fast enough")),
|
||||||
("dropped %" G_GUINT64_FORMAT " samples", sample - src->next_sample));
|
("dropped %" G_GUINT64_FORMAT " samples", sample - src->next_sample));
|
||||||
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
|
GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_DISCONT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ gst/playback/gstplaybin.c
|
||||||
gst/tcp/gsttcp.c
|
gst/tcp/gsttcp.c
|
||||||
gst/tcp/gsttcpclientsink.c
|
gst/tcp/gsttcpclientsink.c
|
||||||
gst/tcp/gsttcpclientsrc.c
|
gst/tcp/gsttcpclientsrc.c
|
||||||
|
gst-libs/gst/audio/gstbaseaudiosrc.c
|
||||||
gst-libs/gst/tag/tags.c
|
gst-libs/gst/tag/tags.c
|
||||||
gst-libs/gst/cdda/gstcddabasesrc.c
|
gst-libs/gst/cdda/gstcddabasesrc.c
|
||||||
gst-libs/gst/pbutils/descriptions.c
|
gst-libs/gst/pbutils/descriptions.c
|
||||||
|
|
Loading…
Reference in a new issue