Commit 3cf3ebfe authored by Simon Morlat's avatar Simon Morlat

fix preview_stream_new()

parent 2011ba71
......@@ -1140,7 +1140,7 @@ MS2_PUBLIC void video_stream_close_remote_record(VideoStream *stream);
typedef VideoStream VideoPreview;
MS2_PUBLIC VideoPreview * video_preview_new(void);
MS2_PUBLIC VideoPreview * video_preview_new(MSFactory *factory);
#define video_preview_set_size(p,s) video_stream_set_sent_video_size(p,s)
#define video_preview_set_display_filter_name(p,dt) video_stream_set_display_filter_name(p,dt)
#define video_preview_set_native_window_id(p,id) video_stream_set_native_preview_window_id(p,id)
......
......@@ -1524,8 +1524,9 @@ int video_stream_get_camera_sensor_rotation(VideoStream *stream) {
return -1;
}
VideoPreview * video_preview_new(void){
VideoPreview * video_preview_new(MSFactory *factory){
VideoPreview *stream = (VideoPreview *)ms_new0 (VideoPreview, 1);
stream->ms.factory = factory;
MS_VIDEO_SIZE_ASSIGN(stream->sent_vsize, CIF);
choose_display_name(stream);
stream->ms.owns_sessions=TRUE;
......
......@@ -55,8 +55,8 @@ int main(int argc, char *argv[]){
/* this is to test the sequence start/stop */
for(i=0;i<1;++i){
int n;
vs=video_preview_new();
vs->ms.factory=factory;
vs=video_preview_new(factory);
/*video_preview_set_display_filter_name(vs,"MSVideoOut");*/
video_preview_set_size(vs,vsize);
video_preview_start(vs, cam);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment