diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-08 12:53:51 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-08 12:53:51 +0000 |
commit | 46a7bd8dfd675a747d4a750a5c8e38d6c44b351b (patch) | |
tree | 2b8d929e9a46099a71b3a338d03ce21cb3bbc169 | |
parent | 4aa8b0ca2166d5c8ace9cd44acb75afc9fca4eda (diff) |
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.
-rw-r--r-- | ChangeLog | 17 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | ext/alsa/gstalsasink.c | 1 | ||||
-rw-r--r-- | ext/pango/gstclockoverlay.c | 2 | ||||
-rw-r--r-- | ext/pango/gsttimeoverlay.c | 2 | ||||
-rw-r--r-- | gst/tcp/gsttcpclientsink.c | 2 | ||||
-rw-r--r-- | gst/tcp/gsttcpclientsrc.c | 2 | ||||
-rw-r--r-- | gst/tcp/gsttcpserversink.c | 2 | ||||
-rw-r--r-- | gst/tcp/gsttcpserversrc.c | 2 |
9 files changed, 28 insertions, 2 deletions
@@ -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> * gst-libs/gst/interfaces/mixertrack.c: diff --git a/common b/common -Subproject c4f56a657d79aee0e3fc25ef2bcf876f9f3c159 +Subproject 7c5a0ab68de1fed4e5a1fd473160debc2c4c7b8 diff --git a/ext/alsa/gstalsasink.c b/ext/alsa/gstalsasink.c index 7e025dde..0329d4f1 100644 --- a/ext/alsa/gstalsasink.c +++ b/ext/alsa/gstalsasink.c @@ -610,6 +610,7 @@ gst_alsasink_open (GstAudioSink * asink) CHECK (snd_pcm_open (&alsa->handle, alsa->device, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK), open_error); + GST_LOG_OBJECT (alsa, "Opened device %s", alsa->device); return TRUE; diff --git a/ext/pango/gstclockoverlay.c b/ext/pango/gstclockoverlay.c index 442eda99..efffb024 100644 --- a/ext/pango/gstclockoverlay.c +++ b/ext/pango/gstclockoverlay.c @@ -143,7 +143,7 @@ gst_clock_overlay_init (GstClockOverlay * overlay, GstClockOverlayClass * klass) pango_context_set_base_dir (context, PANGO_DIRECTION_LTR); 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_variant (font_description, PANGO_VARIANT_NORMAL); pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL); diff --git a/ext/pango/gsttimeoverlay.c b/ext/pango/gsttimeoverlay.c index 640ddb3e..20c27090 100644 --- a/ext/pango/gsttimeoverlay.c +++ b/ext/pango/gsttimeoverlay.c @@ -146,7 +146,7 @@ gst_time_overlay_init (GstTimeOverlay * overlay, GstTimeOverlayClass * klass) pango_context_set_base_dir (context, PANGO_DIRECTION_LTR); 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_variant (font_description, PANGO_VARIANT_NORMAL); pango_font_description_set_weight (font_description, PANGO_WEIGHT_NORMAL); diff --git a/gst/tcp/gsttcpclientsink.c b/gst/tcp/gsttcpclientsink.c index d863e840..32a95c42 100644 --- a/gst/tcp/gsttcpclientsink.c +++ b/gst/tcp/gsttcpclientsink.c @@ -171,6 +171,8 @@ gst_tcp_client_sink_finalize (GObject * gobject) GstTCPClientSink *this = GST_TCP_CLIENT_SINK (gobject); g_free (this->host); + + G_OBJECT_CLASS (parent_class)->finalize (gobject); } static gboolean diff --git a/gst/tcp/gsttcpclientsrc.c b/gst/tcp/gsttcpclientsrc.c index b277feb3..87caea58 100644 --- a/gst/tcp/gsttcpclientsrc.c +++ b/gst/tcp/gsttcpclientsrc.c @@ -168,6 +168,8 @@ gst_tcp_client_src_finalize (GObject * gobject) GstTCPClientSrc *this = GST_TCP_CLIENT_SRC (gobject); g_free (this->host); + + G_OBJECT_CLASS (parent_class)->finalize (gobject); } static GstCaps * diff --git a/gst/tcp/gsttcpserversink.c b/gst/tcp/gsttcpserversink.c index 5b35b8c8..a2c782ee 100644 --- a/gst/tcp/gsttcpserversink.c +++ b/gst/tcp/gsttcpserversink.c @@ -132,6 +132,8 @@ gst_tcp_server_sink_finalize (GObject * gobject) GstTCPServerSink *this = GST_TCP_SERVER_SINK (gobject); g_free (this->host); + + G_OBJECT_CLASS (parent_class)->finalize (gobject); } /* handle a read request on the server, diff --git a/gst/tcp/gsttcpserversrc.c b/gst/tcp/gsttcpserversrc.c index 1cd674c6..b638f438 100644 --- a/gst/tcp/gsttcpserversrc.c +++ b/gst/tcp/gsttcpserversrc.c @@ -163,6 +163,8 @@ gst_tcp_server_src_finalize (GObject * gobject) GstTCPServerSrc *src = GST_TCP_SERVER_SRC (gobject); g_free (src->host); + + G_OBJECT_CLASS (parent_class)->finalize (gobject); } static GstFlowReturn |