Changeset 193:ce62e330a677 in mediastreamer2
- Timestamp:
- Dec 5, 2008 2:56:56 PM (4 years ago)
- Branch:
- default
- Location:
- linphone
- Files:
-
- 5 edited
-
console/linphonec.c (modified) (3 diffs)
-
coreapi/linphonecore.c (modified) (1 diff)
-
gtk-glade/main.c (modified) (1 diff)
-
mediastreamer2/src/alsa.c (modified) (3 diffs)
-
mediastreamer2/src/msv4l.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
linphone/console/linphonec.c
r174 r193 116 116 static bool_t vcap_enabled=FALSE; 117 117 static bool_t display_enabled=FALSE; 118 static bool_t preview_enabled=FALSE; 118 119 static bool_t show_general_state=FALSE; 119 120 LPC_AUTH_STACK auth_stack; … … 480 481 NULL); 481 482 linphone_core_enable_video(&linphonec,vcap_enabled,display_enabled); 482 if (!(vcap_enabled || display_enabled)) printf("Warning: video is disabled in linphonec.\n"); 483 linphone_core_enable_video_preview(&linphonec,preview_enabled); 484 if (!(vcap_enabled || display_enabled)) printf("Warning: video is disabled in linphonec, use -V or -C or -D to enable.\n"); 483 485 #ifdef HAVE_READLINE 484 486 /* … … 861 863 display_enabled = TRUE; 862 864 vcap_enabled = TRUE; 865 preview_enabled=TRUE; 863 866 } 864 867 else if ((strncmp ("-v", argv[arg_num], 2) == 0) -
linphone/coreapi/linphonecore.c
r190 r193 1979 1979 lc->video_conf.capture=vcap_enabled; 1980 1980 lc->video_conf.display=display_enabled; 1981 if (vcap_enabled && display_enabled)1982 lc->video_conf.show_local=1;1983 else1984 lc->video_conf.show_local=0;1985 1981 1986 1982 /* need to re-apply network bandwidth settings*/ -
linphone/gtk-glade/main.c
r190 r193 374 374 void linphone_gtk_set_audio_video(){ 375 375 linphone_core_enable_video(linphone_gtk_get_core(),TRUE,TRUE); 376 linphone_core_enable_video_preview(linphone_gtk_get_core(),TRUE); 376 377 } 377 378 378 379 void linphone_gtk_set_audio_only(){ 379 380 linphone_core_enable_video(linphone_gtk_get_core(),FALSE,FALSE); 381 linphone_core_enable_video_preview(linphone_gtk_get_core(),FALSE); 380 382 } 381 383 -
linphone/mediastreamer2/src/alsa.c
r173 r193 282 282 } 283 283 284 static int alsa_can_read(snd_pcm_t *dev , int frames)284 static int alsa_can_read(snd_pcm_t *dev) 285 285 { 286 286 snd_pcm_sframes_t avail; … … 288 288 289 289 avail = snd_pcm_avail_update(dev); 290 ms_debug("*** %s %d %d", __FUNCTION__, (long)avail, frames);291 290 if (avail < 0) { 292 291 ms_error("snd_pcm_avail_update: %s", snd_strerror(avail)); // most probably -EPIPE … … 832 831 } 833 832 if (ad->handle==NULL) return; 834 while (alsa_can_read(ad->handle ,samples)>=samples){833 while (alsa_can_read(ad->handle)>=samples){ 835 834 836 835 int size=samples*2; -
linphone/mediastreamer2/src/msv4l.c
r55 r193 540 540 } 541 541 542 ms_message("Found %s device. (maxsize=%ix%i)",cap.name, cap.maxwidth, cap.maxheight); 542 ms_message("Found %s device. (maxsize=%ix%i, minsize=%ix%i)",cap.name, cap.maxwidth, cap.maxheight, 543 cap.minwidth, cap.minheight); 543 544 for (i=0;i<cap.channels;i++) 544 545 {
Note: See TracChangeset
for help on using the changeset viewer.
