ext/alsa/gstalsasink.c: Extra log line.

Original commit message from CVS:
* ext/alsa/gstalsasink.c: (gst_alsasink_open):
Extra log line.
* ext/pango/gstclockoverlay.c: (gst_clock_overlay_init):
* ext/pango/gsttimeoverlay.c: (gst_time_overlay_init):
Use pango_font_description_set_family_static instead of
pango_font_description_set_family to save a string copy (it was
leaking due to the strdup anyway)
* gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_finalize):
* gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_finalize):
* gst/tcp/gsttcpserversink.c: (gst_tcp_server_sink_finalize):
* gst/tcp/gsttcpserversrc.c: (gst_tcp_server_src_finalize):
Chain up in finalize.
This commit is contained in:
Jan Schmidt 2007-03-08 12:53:51 +00:00
parent 4aa8b0ca21
commit 46a7bd8dfd
9 changed files with 29 additions and 3 deletions

View file

@ -1,3 +1,20 @@
2007-03-08 Jan Schmidt <thaytan@mad.scientist.com>
* ext/alsa/gstalsasink.c: (gst_alsasink_open):
Extra log line.
* ext/pango/gstclockoverlay.c: (gst_clock_overlay_init):
* ext/pango/gsttimeoverlay.c: (gst_time_overlay_init):
Use pango_font_description_set_family_static instead of
pango_font_description_set_family to save a string copy (it was
leaking due to the strdup anyway)
* gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_finalize):
* gst/tcp/gsttcpclientsrc.c: (gst_tcp_client_src_finalize):
* gst/tcp/gsttcpserversink.c: (gst_tcp_server_sink_finalize):
* gst/tcp/gsttcpserversrc.c: (gst_tcp_server_src_finalize):
Chain up in finalize.
2007-03-07 Tim-Philipp Müller <tim at centricular dot net> 2007-03-07 Tim-Philipp Müller <tim at centricular dot net>
* gst-libs/gst/interfaces/mixertrack.c: * gst-libs/gst/interfaces/mixertrack.c:

2
common

@ -1 +1 @@
Subproject commit c4f56a657d79aee0e3fc25ef2bcf876f9f3c1593 Subproject commit 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b89

View file

@ -610,6 +610,7 @@ gst_alsasink_open (GstAudioSink * asink)
CHECK (snd_pcm_open (&alsa->handle, alsa->device, SND_PCM_STREAM_PLAYBACK, CHECK (snd_pcm_open (&alsa->handle, alsa->device, SND_PCM_STREAM_PLAYBACK,
SND_PCM_NONBLOCK), open_error); SND_PCM_NONBLOCK), open_error);
GST_LOG_OBJECT (alsa, "Opened device %s", alsa->device);
return TRUE; return TRUE;

View file

@ -143,7 +143,7 @@ gst_clock_overlay_init (GstClockOverlay * overlay, GstClockOverlayClass * klass)
pango_context_set_base_dir (context, PANGO_DIRECTION_LTR); pango_context_set_base_dir (context, PANGO_DIRECTION_LTR);
font_description = pango_font_description_new (); font_description = pango_font_description_new ();
pango_font_description_set_family (font_description, g_strdup ("Monospace")); pango_font_description_set_family_static (font_description, "Monospace");
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL); pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
pango_font_description_set_variant (font_description, PANGO_VARIANT_NORMAL); pango_font_description_set_variant (font_description, PANGO_VARIANT_NORMAL);
pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL); pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);

View file

@ -146,7 +146,7 @@ gst_time_overlay_init (GstTimeOverlay * overlay, GstTimeOverlayClass * klass)
pango_context_set_base_dir (context, PANGO_DIRECTION_LTR); pango_context_set_base_dir (context, PANGO_DIRECTION_LTR);
font_description = pango_font_description_new (); font_description = pango_font_description_new ();
pango_font_description_set_family (font_description, g_strdup ("Monospace")); pango_font_description_set_family_static (font_description, "Monospace");
pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL); pango_font_description_set_style (font_description, PANGO_STYLE_NORMAL);
pango_font_description_set_variant (font_description, PANGO_VARIANT_NORMAL); pango_font_description_set_variant (font_description, PANGO_VARIANT_NORMAL);
pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL); pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL);

View file

@ -171,6 +171,8 @@ gst_tcp_client_sink_finalize (GObject * gobject)
GstTCPClientSink *this = GST_TCP_CLIENT_SINK (gobject); GstTCPClientSink *this = GST_TCP_CLIENT_SINK (gobject);
g_free (this->host); g_free (this->host);
G_OBJECT_CLASS (parent_class)->finalize (gobject);
} }
static gboolean static gboolean

View file

@ -168,6 +168,8 @@ gst_tcp_client_src_finalize (GObject * gobject)
GstTCPClientSrc *this = GST_TCP_CLIENT_SRC (gobject); GstTCPClientSrc *this = GST_TCP_CLIENT_SRC (gobject);
g_free (this->host); g_free (this->host);
G_OBJECT_CLASS (parent_class)->finalize (gobject);
} }
static GstCaps * static GstCaps *

View file

@ -132,6 +132,8 @@ gst_tcp_server_sink_finalize (GObject * gobject)
GstTCPServerSink *this = GST_TCP_SERVER_SINK (gobject); GstTCPServerSink *this = GST_TCP_SERVER_SINK (gobject);
g_free (this->host); g_free (this->host);
G_OBJECT_CLASS (parent_class)->finalize (gobject);
} }
/* handle a read request on the server, /* handle a read request on the server,

View file

@ -163,6 +163,8 @@ gst_tcp_server_src_finalize (GObject * gobject)
GstTCPServerSrc *src = GST_TCP_SERVER_SRC (gobject); GstTCPServerSrc *src = GST_TCP_SERVER_SRC (gobject);
g_free (src->host); g_free (src->host);
G_OBJECT_CLASS (parent_class)->finalize (gobject);
} }
static GstFlowReturn static GstFlowReturn