Changeset 63:9e27c981b702 in mediastreamer2
- Timestamp:
- Oct 4, 2008 10:59:24 PM (5 years ago)
- Branch:
- default
- Location:
- linphone
- Files:
-
- 1 added
- 9 edited
-
coreapi/misc.c (modified) (4 diffs)
-
gtk-glade/linphone.iss (modified) (1 diff)
-
gtk-glade/main.c (modified) (1 diff)
-
mediastreamer2/build/win32native/mediastreamer2.dev (modified) (2 diffs)
-
mediastreamer2/src/msvideo.c (modified) (1 diff)
-
mediastreamer2/src/winsnd2.c (modified) (4 diffs)
-
mediastreamer2/src/winsnd3.c (added)
-
mediastreamer2/src/winvideo.c (modified) (7 diffs)
-
oRTP/build/win32native/ortp-dll.dev (modified) (2 diffs)
-
win32/liblinphone.dev (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
linphone/coreapi/misc.c
r62 r63 465 465 laddr.sin_port=htons(local_port); 466 466 if (bind(sock,(struct sockaddr*)&laddr,sizeof(laddr))<0){ 467 ms_error("Bind to 0.0.0.0:%i failed: %s",local_port,strerror(errno));467 ms_error("Bind socket to 0.0.0.0:%i failed: %s",local_port,getSocketError()); 468 468 close_socket(sock); 469 469 return -1; … … 637 637 int port=extract_sip_port(config_file); 638 638 const char *wakeup="WAKEUP sip:127.0.0.1 SIP/2.0\r\n" 639 "Via: SIP/2.0/UDP 127.0.0.1: 57655;rport;branch=z9hG4bK%u\r\n"639 "Via: SIP/2.0/UDP 127.0.0.1:%i;rport;branch=z9hG4bK%u\r\n" 640 640 "From: <sip:another_linphone@127.0.0.1>;tag=%u\r\n" 641 641 "To: <sip:you@127.0.0.1>\r\n" … … 651 651 snprintf(tmp,sizeof(tmp),"127.0.0.1:%i",port); 652 652 if (parse_stun_server_addr(tmp,&ss,&sslen)==0){ 653 int sock=create_socket(57655); 653 int locport=57123; 654 ortp_socket_t sock=create_socket(locport); 655 if (sock<0) sock=create_socket(++locport); 654 656 if (sock>=0){ 655 657 char req[512]; 656 snprintf(req,sizeof(req),wakeup,random(),random(),random()); 657 if (sendto(sock,req,strlen(req),0,(struct sockaddr*)&ss,sslen)>0){ 658 snprintf(req,sizeof(req),wakeup,locport,random(),random(),random()); 659 if (connect(sock,(struct sockaddr*)&ss,sslen)<0){ 660 fprintf(stderr,"connect failed: %s\n",getSocketError()); 661 }else if (send(sock,req,strlen(req),0)>0){ 658 662 /*wait a bit for a response*/ 659 663 int i; 660 664 for(i=0;i<10;++i){ 661 if (recv(sock,tmp,sizeof(tmp),0)>0){ 662 ms_message("Another linphone has been woken-up !"); 663 close(sock); 665 if (recv(sock,req,sizeof(req),0)>0){ 666 close_socket(sock); 664 667 return 0; 668 }else if (getSocketErrorCode()!=EWOULDBLOCK){ 669 break; 665 670 } 666 671 #ifdef WIN32 … … 670 675 #endif 671 676 } 672 } 673 } else ms_error("Fail to create socket on port 57655");674 close (sock);677 }else ms_message("sendto() of WAKEUP request failed, nobody to wakeup."); 678 } 679 close_socket(sock); 675 680 } 676 681 } -
linphone/gtk-glade/linphone.iss
r59 r63 35 35 Source: "..\..\linphone-deps\bin\exosip2.dll"; DestDir: "{app}"; Flags: ignoreversion 36 36 Source: "..\..\linphone-deps\bin\libogg.dll"; DestDir: "{app}"; Flags: ignoreversion 37 Source: "..\..\linphone-deps\bin\speex.dll"; DestDir: "{app}"; Flags: ignoreversion37 ;;Source: "..\..\linphone-deps\bin\speex.dll"; DestDir: "{app}"; Flags: ignoreversion 38 38 Source: "..\..\linphone-deps\bin\avcodec.dll"; DestDir: "{app}"; Flags: ignoreversion 39 39 Source: "..\..\linphone-deps\bin\avutil.dll"; DestDir: "{app}"; Flags: ignoreversion 40 Source: "..\..\linphone-deps\bin\libspeex-1.dll"; DestDir: "{app}"; Flags: ignoreversion41 Source: "..\..\linphone-deps\bin\libspeexdsp-1.dll"; DestDir: "{app}"; Flags: ignoreversion40 ;;Source: "..\..\linphone-deps\bin\libspeex-1.dll"; DestDir: "{app}"; Flags: ignoreversion 41 ;;Source: "..\..\linphone-deps\bin\libspeexdsp-1.dll"; DestDir: "{app}"; Flags: ignoreversion 42 42 Source: "..\mediastreamer2\build\win32native\mediastreamer2.dll"; DestDir: "{app}"; Flags: ignoreversion 43 43 Source: "..\oRTP\build\win32native\ortp.dll"; DestDir: "{app}"; Flags: ignoreversion -
linphone/gtk-glade/main.c
r62 r63 717 717 add_pixmap_directory("pixmaps"); 718 718 add_pixmap_directory(PACKAGE_DATA_DIR "/pixmaps/linphone"); 719 #ifdef WIN32 720 add_pixmap_directory("linphone"); 721 #endif 719 722 720 723 the_ui=linphone_gtk_create_window("main"); -
linphone/mediastreamer2/build/win32native/mediastreamer2.dev
r59 r63 445 445 446 446 [Unit42] 447 FileName=..\..\src\winsnd 2.c447 FileName=..\..\src\winsnd3.c 448 448 CompileCpp=0 449 449 Folder=mediastreamer2 … … 513 513 ResourceIncludes= 514 514 MakeIncludes= 515 Compiler=-ggdb_@@_-DINET6 _@@_-DORTP_INET6 _@@_-D_WORKAROUND_MINGW32_BUGS_@@_-D_WIN32_WINNT=0x0501 _@@_-DNOSDL_@@_-DVIDEO_ENABLED_@@_-DNORESAMPLE_@@_-Wall _@@_-DHAVE_LIBAVCODEC_AVCODEC_H_@@_ 515 Compiler=-ggdb_@@_-DINET6 _@@_-DORTP_INET6 _@@_-D_WORKAROUND_MINGW32_BUGS_@@_-D_WIN32_WINNT=0x0501 _@@_-DNOSDL_@@_-DVIDEO_ENABLED_@@_-DNORESAMPLE_@@_-Wall _@@_-DHAVE_LIBAVCODEC_AVCODEC_H_@@_-D_TRUE_TIME_@@_ 516 516 CppCompiler= 517 517 Linker=-lortp_@@_-lavcodec_@@_-lavutil_@@_-ltheora_@@_-lspeex_@@_-lspeexdsp_@@_-lgsm_@@_-lws2_32_@@_-lwinmm_@@_-lvfw32_@@_-logg_@@__@@_ -
linphone/mediastreamer2/src/msvideo.c
r62 r63 157 157 uint8_t *p,*pe; 158 158 int i,j; 159 uint8_t *end=buf+(h*linesize *3);159 uint8_t *end=buf+(h*linesize); 160 160 uint8_t exch; 161 161 p=buf; 162 162 pe=end-1; 163 163 for(i=0;i<h/2;++i){ 164 for(j=0;i<w ;++j){164 for(j=0;i<w*3;++j){ 165 165 exch=p[i]; 166 166 p[i]=pe[-i]; -
linphone/mediastreamer2/src/winsnd2.c
r0 r63 239 239 } 240 240 241 242 #ifndef _TRUE_TIME 241 243 static uint64_t winsnd_get_cur_time( void *data){ 242 244 WinSnd *d=(WinSnd*)data; … … 245 247 return curtime; 246 248 } 249 #endif 247 250 248 251 … … 409 412 return ; 410 413 } 414 #ifndef _TRUE_TIME 411 415 ms_ticker_set_time_func(f->ticker,winsnd_get_cur_time,d); 416 #endif 412 417 } 413 418 … … 416 421 MMRESULT mr; 417 422 int i; 423 #ifndef _TRUE_TIME 418 424 ms_ticker_set_time_func(f->ticker,NULL,NULL); 425 #endif 419 426 d->running=FALSE; 420 427 mr=waveInStop(d->indev); -
linphone/mediastreamer2/src/winvideo.c
r55 r63 59 59 bool_t started; 60 60 bool_t autostarted; 61 bool_t invert_rgb; 61 62 }V4wState; 62 63 … … 87 88 88 89 static bool_t try_format(V4wState *s, BITMAPINFO *videoformat, MSPixFmt pixfmt){ 90 bool_t ret; 89 91 capGetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO)); 90 92 videoformat->bmiHeader.biSizeImage = 0; … … 107 109 return FALSE; 108 110 } 109 return capSetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO)); 111 ret=capSetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO)); 112 if (ret) { 113 /*recheck video format */ 114 capGetVideoFormat(s->capvideo, videoformat, sizeof(BITMAPINFO)); 115 } 116 return ret; 110 117 } 111 118 … … 186 193 187 194 driver_last=ms_fourcc_to_pix_fmt(videoformat.bmiHeader.biCompression); 188 189 195 if (s->startwith_yuv_bug==TRUE && try_format(s,&videoformat,MS_RGB24)){ 190 196 s->pix_fmt=MS_RGB24; … … 210 216 return -1; 211 217 } 218 if (s->pix_fmt==MS_RGB24){ 219 s->invert_rgb=(videoformat.bmiHeader.biHeight>0); 220 }else s->invert_rgb=FALSE; 212 221 if (!capSetCallbackOnVideoStream(s->capvideo, VideoStreamCallback)) 213 222 { … … 247 256 s->started=FALSE; 248 257 s->autostarted=FALSE; 249 258 s->invert_rgb=FALSE; 250 259 #ifdef AMD_HACK2 251 260 /* avoid bug with USB vimicro cards: … … 502 511 if (om!=NULL) freemsg(om); 503 512 om=m; 513 } 514 if (om!=NULL){ 515 if (s->invert_rgb) rgb24_revert(om->b_rptr,s->vsize.width,s->vsize.height,s->vsize.width*3); 504 516 } 505 517 }else { -
linphone/oRTP/build/win32native/ortp-dll.dev
r0 r63 382 382 AutoIncBuildNrOnRebuild=0 383 383 AutoIncBuildNrOnCompile=0 384 UnitCount=4 0384 UnitCount=41 385 385 386 386 [Unit37] … … 470 470 Priority=1000 471 471 OverrideBuildCmd=0 472 BuildCmd= $(CC) -c b64.c -o "Default Profile/b64.o" $(CFLAGS)473 472 BuildCmd=$(CC) -c b64.c -o "Default Profile/b64.o" $(CFLAGS) 473 -
linphone/win32/liblinphone.dev
r0 r63 212 212 AutoIncBuildNrOnRebuild=0 213 213 AutoIncBuildNrOnCompile=0 214 UnitCount=18 214 215 215 216 [Profile1] … … 226 227 Linker= 227 228 PreprocDefines= 228 CompilerSettings=0000000000 100000000000229 CompilerSettings=0000000000010000000000 229 230 Icon= 230 231 ExeOutput=..\win32
Note: See TracChangeset
for help on using the changeset viewer.
