Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
libdmapsharing
Commits
7375c90c
Commit
7375c90c
authored
Nov 18, 2010
by
W. Michael Petullo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem sharing to iTunes due to incorrect Content-Length
Signed-off-by:
W. Michael Petullo
<
mike@flyn.org
>
parent
edbd2c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
libdmapsharing/dmap-share.c
libdmapsharing/dmap-share.c
+2
-2
No files found.
libdmapsharing/dmap-share.c
View file @
7375c90c
...
...
@@ -1459,7 +1459,7 @@ accumulate_mlcl_size (gpointer id,
struct
MLCL_Bits
mb_copy
=
*
((
struct
MLCL_Bits
*
)
mb
);
mb_copy
.
mlcl
=
dmap_structure_add
(
NULL
,
DMAP_CC_MLCL
);;
*
((
guint
*
)
((
struct
MLCL_Bits
*
)
mb
)
->
user_data1
)
+=
DMAP_SHARE_GET_CLASS
(((
struct
MLCL_Bits
*
)
mb
)
->
user_data2
)
->
add_entry_to_mlcl
(
id
,
record
,
&
mb_copy
);
*
((
guint
*
)
((
struct
MLCL_Bits
*
)
mb
)
->
user_data1
)
+=
DMAP_SHARE_GET_CLASS
(((
struct
MLCL_Bits
*
)
mb
)
->
user_data2
)
->
add_entry_to_mlcl
(
id
,
record
,
&
mb_copy
)
+
8
/* FIXME: sizeof MLIT */
;
/* Destroy created structures as we go. */
dmap_structure_destroy
(
mb_copy
.
mlcl
);
...
...
@@ -1746,7 +1746,7 @@ _dmap_share_databases (DMAPShare *share,
/* 3: */
soup_message_set_status
(
message
,
SOUP_STATUS_OK
);
soup_message_headers_set_content_length
(
message
->
response_headers
,
dmap_structure_get_size
(
adbs
)
+
8
);
soup_message_headers_set_content_length
(
message
->
response_headers
,
dmap_structure_get_size
(
adbs
)
+
8
/* FIXME: sizeof MLCL */
);
/* Free memory after each chunk sent out over network. */
soup_message_body_set_accumulate
(
message
->
response_body
,
FALSE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment