2
The mediastreamer library aims at providing modular media processing and I/O
3
for linphone, but also for any telephony application.
4
Copyright (C) 2001 Simon MORLAT simon.morlat@linphone.org
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
#include "msvideooutput.h"
30
#include <sys/types.h>
34
void stop_handler(int signum)
40
int main(int argc, char*argv[])
47
printf("test_gdkvo name (filename or device name)\n");
53
signal(SIGINT,stop_handler);
55
ms_v4l_set_device(MS_V4L(source),argv[1]);
56
//source=ms_read_new(argv[1]);
57
vo=ms_video_output_new();
59
ms_video_output_set_title(MS_VIDEO_OUTPUT(vo),"local image");
60
ms_filter_add_link(source,vo);
62
timer=ms_nosync_new();
63
//ms_timer_set_interval(MS_TIMER(timer),100);
65
ms_sync_attach(timer,source);
67
ms_v4l_start(MS_V4L(source));
69
while (cond) sleep(1);
70
ms_v4l_stop(MS_V4L(source));
72
ms_sync_detach(timer,source);
73
ms_filter_remove_links(source,vo);
74
ms_filter_destroy(source);
75
ms_filter_destroy(vo);
76
ms_sync_destroy(timer);
77
g_message("End of test program.");