[rygel-gst-0-10-media-engine] Add private struct to RygelAudioTranscoder.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel-gst-0-10-media-engine] Add private struct to RygelAudioTranscoder.
- Date: Wed, 9 Jan 2013 14:22:49 +0000 (UTC)
commit 0d717b1b24bf55849ae3be3d4dea9de7abcabb56
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Wed Jan 9 15:21:43 2013 +0100
Add private struct to RygelAudioTranscoder.
src/rygel-audio-transcoder.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel-audio-transcoder.c b/src/rygel-audio-transcoder.c
index 18eb43b..1870f09 100644
--- a/src/rygel-audio-transcoder.c
+++ b/src/rygel-audio-transcoder.c
@@ -30,6 +30,8 @@
G_DEFINE_TYPE (RygelAudioTranscoder, rygel_audio_transcoder, RYGEL_TYPE_GST_TRANSCODER)
+#define RYGEL_AUDIO_TRANSCODER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RYGEL_TYPE_AUDIO_TRANSCODER, RygelAudioTranscoderPrivate))
+
struct _RygelAudioTranscoderPrivate {
gint audio_bitrate;
GstCaps* container_format;
@@ -129,10 +131,12 @@ rygel_audio_transcoder_class_init (RygelAudioTranscoderClass *klass) {
g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_AUDIO_TRANSCODER_AUDIO_BITRATE, g_param_spec_int ("audio-bitrate", "audio-bitrate", "audio-bitrate", 0, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_AUDIO_TRANSCODER_AUDIO_CAPS, g_param_spec_string ("audio-caps", "audio-caps", "audio-caps", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
g_object_class_install_property (G_OBJECT_CLASS (klass), RYGEL_AUDIO_TRANSCODER_CONTAINER_CAPS, g_param_spec_string ("container-caps", "container-caps", "container-caps", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
+ g_type_class_add_private (klass, sizeof (RygelAudioTranscoderPrivate));
}
static void
rygel_audio_transcoder_init (RygelAudioTranscoder *self) {
+ self->priv = RYGEL_AUDIO_TRANSCODER_GET_PRIVATE (self);
self->priv->container_format = NULL;
self->priv->audio_codec_format = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]