[MPlayer-cvslog] r36728 - trunk/stream/stream_netstream.c
reimar
subversion at mplayerhq.hu
Sat Jan 25 17:54:58 CET 2014
Author: reimar
Date: Sat Jan 25 17:54:58 2014
New Revision: 36728
Log:
stream_netstream: merge declaration and initialization.
Modified:
trunk/stream/stream_netstream.c
Modified: trunk/stream/stream_netstream.c
==============================================================================
--- trunk/stream/stream_netstream.c Sat Jan 25 17:54:56 2014 (r36727)
+++ trunk/stream/stream_netstream.c Sat Jan 25 17:54:58 2014 (r36728)
@@ -169,9 +169,7 @@ static mp_net_stream_packet_t* send_net_
static int fill_buffer(stream_t *s, char* buffer, int max_len){
uint16_t len = le2me_16(max_len);
- mp_net_stream_packet_t* pack;
-
- pack = send_net_stream_cmd(s,NET_STREAM_FILL_BUFFER,(char*)&len,2);
+ mp_net_stream_packet_t *pack = send_net_stream_cmd(s,NET_STREAM_FILL_BUFFER,(char*)&len,2);
if(!pack) {
return -1;
}
@@ -190,9 +188,7 @@ static int fill_buffer(stream_t *s, char
static int seek(stream_t *s, int64_t newpos) {
uint64_t pos = le2me_64(newpos);
- mp_net_stream_packet_t* pack;
-
- pack = send_net_stream_cmd(s,NET_STREAM_SEEK,(char*)&pos,8);
+ mp_net_stream_packet_t *pack = send_net_stream_cmd(s,NET_STREAM_SEEK,(char*)&pos,8);
if(!pack) {
return 0;
}
@@ -202,9 +198,7 @@ static int seek(stream_t *s, int64_t new
}
static int net_stream_reset(struct stream *s) {
- mp_net_stream_packet_t* pack;
-
- pack = send_net_stream_cmd(s,NET_STREAM_RESET,NULL,0);
+ mp_net_stream_packet_t *pack = send_net_stream_cmd(s,NET_STREAM_RESET,NULL,0);
if(!pack) {
return 0;
}
@@ -221,9 +215,7 @@ static int control(struct stream *s,int
}
static void close_s(struct stream *s) {
- mp_net_stream_packet_t* pack;
-
- pack = send_net_stream_cmd(s,NET_STREAM_CLOSE,NULL,0);
+ mp_net_stream_packet_t *pack = send_net_stream_cmd(s,NET_STREAM_CLOSE,NULL,0);
free(pack);
}
More information about the MPlayer-cvslog
mailing list