Mercurial > pidgin.yaz
comparison src/mediastreamer/msread.c @ 12029:1c771536a032
[gaim-migrate @ 14322]
This _compiles_ for me now. Theres still a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warning and some redefinition warnings from the various config.h's. The deferencing warnings look like a BE<->LE hack but I left them untouched for the time being.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Wed, 09 Nov 2005 09:57:33 +0000 |
parents | e67993da8a22 |
children |
comparison
equal
deleted
inserted
replaced
12028:b0ad08e1d492 | 12029:1c771536a032 |
---|---|
29 static MSReadClass *ms_read_class=NULL; | 29 static MSReadClass *ms_read_class=NULL; |
30 | 30 |
31 MSFilter * ms_read_new(char *name) | 31 MSFilter * ms_read_new(char *name) |
32 { | 32 { |
33 MSRead *r; | 33 MSRead *r; |
34 int fd=-1; | |
35 | 34 |
36 r=g_new(MSRead,1); | 35 r=g_new(MSRead,1); |
37 ms_read_init(r); | 36 ms_read_init(r); |
38 if (ms_read_class==NULL) | 37 if (ms_read_class==NULL) |
39 { | 38 { |
89 gint ms_read_set_property(MSRead *f,MSFilterProperty prop, void *value) | 88 gint ms_read_set_property(MSRead *f,MSFilterProperty prop, void *value) |
90 { | 89 { |
91 switch(prop){ | 90 switch(prop){ |
92 case MS_FILTER_PROPERTY_FREQ: | 91 case MS_FILTER_PROPERTY_FREQ: |
93 f->rate=((gint*)value)[0]; | 92 f->rate=((gint*)value)[0]; |
93 break; | |
94 case MS_FILTER_PROPERTY_BITRATE: | |
95 case MS_FILTER_PROPERTY_CHANNELS: | |
96 case MS_FILTER_PROPERTY_FMTP: | |
97 default: | |
94 break; | 98 break; |
95 } | 99 } |
96 return 0; | 100 return 0; |
97 } | 101 } |
98 | 102 |
170 if (obj->fd!=0) { | 174 if (obj->fd!=0) { |
171 close(obj->fd); | 175 close(obj->fd); |
172 obj->fd=-1; | 176 obj->fd=-1; |
173 obj->state=MS_READ_STATE_STOPPED; | 177 obj->state=MS_READ_STATE_STOPPED; |
174 } | 178 } |
179 | |
180 /* No idea if this is correct, but again nothing is calling it and it's not | |
181 * even declared in the header file so this should be fine. -- Gary | |
182 */ | |
183 return 0; | |
175 } | 184 } |
176 | 185 |
177 | 186 |
178 void ms_read_setup(MSRead *r, MSSync *sync) | 187 void ms_read_setup(MSRead *r, MSSync *sync) |
179 { | 188 { |