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
49618453
Commit
49618453
authored
Jan 20, 2014
by
antma
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master'
parents
192b82ef
22a81ff8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
interface.c
interface.c
+2
-2
lua-tg.c
lua-tg.c
+1
-1
queries.c
queries.c
+16
-0
queries.h
queries.h
+1
-0
No files found.
interface.c
View file @
49618453
...
...
@@ -971,7 +971,7 @@ void interpreter (char *line UU) {
}
struct
message
*
M
=
message_get
(
num
);
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
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
1
);
}
else
{
...
...
@@ -986,7 +986,7 @@ void interpreter (char *line UU) {
}
struct
message
*
M
=
message_get
(
num
);
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
)
{
do_load_encr_video
(
&
M
->
media
.
encr_video
,
2
);
}
else
{
...
...
lua-tg.c
View file @
49618453
...
...
@@ -343,7 +343,7 @@ static int pos;
static
peer_t
*
get_peer
(
const
char
*
s
)
{
int
index
=
0
;
while
(
index
<
peer_num
&&
Peers
[
index
]
->
print_name
&&
strcmp
(
Peers
[
index
]
->
print_name
,
s
))
{
while
(
index
<
peer_num
&&
(
!
Peers
[
index
]
->
print_name
||
strcmp
(
Peers
[
index
]
->
print_name
,
s
)
))
{
index
++
;
}
return
index
==
peer_num
?
0
:
Peers
[
index
];
...
...
queries.c
View file @
49618453
...
...
@@ -1936,6 +1936,22 @@ void do_load_video (struct video *V, int next) {
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
)
{
assert
(
V
);
assert
(
next
);
...
...
queries.h
View file @
49618453
...
...
@@ -89,6 +89,7 @@ struct photo;
struct
video
;
void
do_load_photo
(
struct
photo
*
photo
,
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_document
(
struct
document
*
V
,
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