Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
71e5991c
Commit
71e5991c
authored
Jan 17, 2014
by
vysheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed load audio
parent
4b6870f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
interface.c
interface.c
+2
-2
queries.c
queries.c
+16
-0
queries.h
queries.h
+1
-0
No files found.
interface.c
View file @
71e5991c
...
@@ -971,7 +971,7 @@ void interpreter (char *line UU) {
...
@@ -971,7 +971,7 @@ void interpreter (char *line UU) {
}
}
struct
message
*
M
=
message_get
(
num
);
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
do_load_
vide
o
(
&
M
->
media
.
video
,
1
);
do_load_
audi
o
(
&
M
->
media
.
video
,
1
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
}
else
{
}
else
{
...
@@ -986,7 +986,7 @@ void interpreter (char *line UU) {
...
@@ -986,7 +986,7 @@ void interpreter (char *line UU) {
}
}
struct
message
*
M
=
message_get
(
num
);
struct
message
*
M
=
message_get
(
num
);
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_message_media_audio
)
{
do_load_
vide
o
(
&
M
->
media
.
video
,
2
);
do_load_
audi
o
(
&
M
->
media
.
video
,
2
);
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
}
else
if
(
M
&&
!
M
->
service
&&
M
->
media
.
type
==
(
int
)
CODE_decrypted_message_media_audio
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
}
else
{
}
else
{
...
...
queries.c
View file @
71e5991c
...
@@ -1936,6 +1936,22 @@ void do_load_video (struct video *V, int next) {
...
@@ -1936,6 +1936,22 @@ void do_load_video (struct video *V, int next) {
load_next_part
(
D
);
load_next_part
(
D
);
}
}
void
do_load_audio
(
struct
video
*
V
,
int
next
)
{
assert
(
V
);
assert
(
next
);
struct
download
*
D
=
talloc0
(
sizeof
(
*
D
));
D
->
offset
=
0
;
D
->
size
=
V
->
size
;
D
->
id
=
V
->
id
;
D
->
access_hash
=
V
->
access_hash
;
D
->
dc
=
V
->
dc_id
;
D
->
next
=
next
;
D
->
name
=
0
;
D
->
fd
=
-
1
;
D
->
type
=
CODE_input_audio_file_location
;
load_next_part
(
D
);
}
void
do_load_document
(
struct
document
*
V
,
int
next
)
{
void
do_load_document
(
struct
document
*
V
,
int
next
)
{
assert
(
V
);
assert
(
V
);
assert
(
next
);
assert
(
next
);
...
...
queries.h
View file @
71e5991c
...
@@ -89,6 +89,7 @@ struct photo;
...
@@ -89,6 +89,7 @@ struct photo;
struct
video
;
struct
video
;
void
do_load_photo
(
struct
photo
*
photo
,
int
next
);
void
do_load_photo
(
struct
photo
*
photo
,
int
next
);
void
do_load_video_thumb
(
struct
video
*
video
,
int
next
);
void
do_load_video_thumb
(
struct
video
*
video
,
int
next
);
void
do_load_audio
(
struct
video
*
V
,
int
next
);
void
do_load_video
(
struct
video
*
V
,
int
next
);
void
do_load_video
(
struct
video
*
V
,
int
next
);
void
do_load_document
(
struct
document
*
V
,
int
next
);
void
do_load_document
(
struct
document
*
V
,
int
next
);
void
do_load_document_thumb
(
struct
document
*
video
,
int
next
);
void
do_load_document_thumb
(
struct
document
*
video
,
int
next
);
...
...
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