Changeset 176:fbd331d7dcff in verona
- Timestamp:
- May 10, 2011 2:08:05 PM (2 years ago)
- Branch:
- default
- Location:
- phapi
- Files:
-
- 3 edited
-
phms.c (modified) (2 diffs)
-
phms_videostream.c (modified) (2 diffs)
-
phms_videostream.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phms.c
r175 r176 185 185 if(s->newstreams & 1<<PH_MSTREAM_VIDEO1) 186 186 { 187 video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, video1->video_quality);187 video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, conf->video_config.video_webcam_capture_width,conf->video_config.video_webcam_capture_height); 188 188 if(video == NULL) 189 189 { … … 499 499 if(video_stop_on_hold) 500 500 { 501 video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, video1->video_quality);501 video = phms_video_stream_new(video1->localport, ms_is_ipv6(video1->remoteaddr), video1->traffictype, -1,-1); 502 502 if(video == NULL) 503 503 { -
phapi/phms_videostream.c
r174 r176 117 117 } 118 118 119 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int quality)119 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int width, int height) 120 120 { 121 121 MSVideoSize vsize; … … 126 126 if(pvs->s != NULL) 127 127 { 128 get_vsize_from_quality(quality, &vsize); 129 pvs->s->sent_vsize.height = vsize.height; 130 pvs->s->sent_vsize.width = vsize.width; 131 132 ms_message("Initial sent format set to %d:%d, quality %d\n",vsize.height,vsize.width, quality); 128 129 pvs->s->sent_vsize.width = width; 130 pvs->s->sent_vsize.height = height; 133 131 134 132 pvs->frame_event.frame_local = (phPicture_t *)malloc(sizeof(phPicture_t)); -
phapi/phms_videostream.h
r173 r176 45 45 typedef struct phms_video_stream_s phms_video_stream_t; 46 46 47 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int quality);47 phms_video_stream_t *phms_video_stream_new(int locport, bool_t use_ipv6, int traffictype, int width, int height); 48 48 int phms_video_stream_start (phms_video_stream_t *pstream, RtpProfile *profile, const char *remip, int remport,int rem_rtcp_port, int payload, int jitt_comp, void *msession); 49 49 int phms_video_stream_start_send_only(phms_video_stream_t *pvs, RtpProfile *profile, const char *remip, int remport,int rem_rtcp_port, int payload, int jitt_comp, void *msession);
Note: See TracChangeset
for help on using the changeset viewer.
