[b695396d3070a538dafaeed76a84fb93d8481fdd7f4672113c5a968130c2e9f4] dmap-transcode-stream.c: add missing ..._get_instance_private()
- From: W. Michael Petullo <wmpetullo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [b695396d3070a538dafaeed76a84fb93d8481fdd7f4672113c5a968130c2e9f4] dmap-transcode-stream.c: add missing ..._get_instance_private()
- Date: Wed, 8 Jul 2020 01:55:45 +0000 (UTC)
commit db6a7d351ea66ae52aec40314b74166aee88f794
Author: W. Michael Petullo <mike flyn org>
Date: Tue Jul 7 21:55:36 2020 -0400
dmap-transcode-stream.c: add missing ..._get_instance_private()
libdmapsharing/dmap-transcode-stream.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/libdmapsharing/dmap-transcode-stream.c b/libdmapsharing/dmap-transcode-stream.c
index 6742c83..cec322f 100644
--- a/libdmapsharing/dmap-transcode-stream.c
+++ b/libdmapsharing/dmap-transcode-stream.c
@@ -439,9 +439,17 @@ dmap_transcode_stream_class_init (DmapTranscodeStreamClass * klass)
istream_class->close_finish = _close_finish;
}
+G_DEFINE_TYPE_WITH_CODE (DmapTranscodeStream, dmap_transcode_stream,
+ G_TYPE_INPUT_STREAM,
+ G_IMPLEMENT_INTERFACE (G_TYPE_SEEKABLE,
+ _seekable_iface_init)
+ G_ADD_PRIVATE (DmapTranscodeStream));
+
static void
dmap_transcode_stream_init (DmapTranscodeStream * stream)
{
+ stream->priv = dmap_transcode_stream_get_instance_private(stream);
+
stream->priv->buffer = g_queue_new ();
stream->priv->read_request = 0;
stream->priv->write_request = 0;
@@ -454,9 +462,3 @@ dmap_transcode_stream_init (DmapTranscodeStream * stream)
g_cond_init (&stream->priv->buffer_read_ready);
g_cond_init (&stream->priv->buffer_write_ready);
}
-
-G_DEFINE_TYPE_WITH_CODE (DmapTranscodeStream, dmap_transcode_stream,
- G_TYPE_INPUT_STREAM,
- G_IMPLEMENT_INTERFACE (G_TYPE_SEEKABLE,
- _seekable_iface_init)
- G_ADD_PRIVATE (DmapTranscodeStream));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]