2 mediastreamer2 library - modular sound and video processing and streaming
3 Copyright (C) 2006 Simon MORLAT (simon.morlat@linphone.org)
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #include "mediastreamer2/msfilter.h"
22 static void join_process(MSFilter *f){
24 if (f->inputs[0]!=NULL)
26 while((im=ms_queue_get(f->inputs[0]))!=NULL){
27 ms_queue_put(f->outputs[0],im);
30 if (f->inputs[1]!=NULL)
32 while((im=ms_queue_get(f->inputs[1]))!=NULL){
34 payload=mblk_set_payload_type(im, 123);
35 ms_queue_put(f->outputs[0],im);
42 MSFilterDesc ms_join_desc={
45 N_("A filter that send several inputs to one output."),
60 MSFilterDesc ms_join_desc={
63 .text=N_("A filter that send several inputs to one output."),
64 .category=MS_FILTER_OTHER,
72 MS_FILTER_DESC_EXPORT(ms_join_desc)