Commit graph

6263 commits

Author SHA1 Message Date
Youness Alaoui
854773d724 [MOVED FROM GST-P-FARSIGHT] Changed dtmfsrc into a subclass of GstBaseSrc
20070913175520-4f0f6-16ca4bf93690072f3e836d1c8a5b52cf7a421916.gz
2009-02-21 17:48:02 +01:00
Youness Alaoui
4eab02230d [MOVED FROM GST-P-FARSIGHT] Add another fix for a possible race condition
20070904225753-4f0f6-5ba8c4260c002bb27eb98e9faba3c15799357b57.gz
2009-02-21 17:48:02 +01:00
Olivier Crete
9c5331b747 [MOVED FROM GST-P-FARSIGHT] Add comment to explain push back
20070904215224-3e2dc-d92ac1f403dcf571546a7c53f18809f840eea51d.gz
2009-02-21 17:48:01 +01:00
Olivier Crete
695cecd229 [MOVED FROM GST-P-FARSIGHT] Properly do the locking to avoid race conditions with clock unscheduling
20070904205509-3e2dc-da19900b51af6aedb6547f4f392bef4d1061dec2.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
483a557e93 [MOVED FROM GST-P-FARSIGHT] oups, I did it again...
20070901000324-4f0f6-3d8b46691ee520537b06c511a5e732f5b812b844.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
e8f12dce64 [MOVED FROM GST-P-FARSIGHT] oups, sorry.. DTMF, not RTP_DTMF for this file...
20070831235428-4f0f6-00b606bfb4892e4f217c440b611cc794ab0de55a.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
886a695daa [MOVED FROM GST-P-FARSIGHT] Fixes the deadlock when pausing the dtmfsrc and rtpdtmfsrc. Had to push something on the async queue to release the blocking async_queue_pop(). Thanks to Olivier for the solution.
20070831234413-4f0f6-793cf35fc43636e7275258cc7063fc068f5efa0a.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
102570fe4d [MOVED FROM GST-P-FARSIGHT] ClockID when waiting for buffer is now unscheduled when stopping the task. Various fixes to avoid bugs (thanks to -Wall -Werror). Fixes to allow the merge of the branch.
20070828221534-4f0f6-b0d6a4fe48c4e2a16b9ff69cb310087c970ce48e.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
608175845d [MOVED FROM GST-P-FARSIGHT] Cleaned up the code a bit, no use of GST_* and return value verification from gst_*
20070828171546-4f0f6-bdeb4b1b7f99f9464aabe5c43bd4a4d2025262b6.gz
2009-02-21 17:48:01 +01:00
Olivier Crete
a0beb104de [MOVED FROM GST-P-FARSIGHT] Fix overly long lines and tabs
20070827195610-3e2dc-396a3fa01e16f184e4109c71fe2deb6e516bdf0d.gz
2009-02-21 17:48:01 +01:00
Youness Alaoui
58ec497deb [MOVED FROM GST-P-FARSIGHT] untabbified dtmfsrc
20070827192618-4f0f6-77d68070464f1b5f9a46cb6eec2d922340143c04.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
87c552ae2b [MOVED FROM GST-P-FARSIGHT] Fix RTP timestamps by sending a new_segment event to the payloader
20070827172424-4f0f6-d20907e3d436d50bfe74eb4fc3d2d6d7b6b6dbc5.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
b8550c20c0 [MOVED FROM GST-P-FARSIGHT] Better handling of packets, we send the same duration for all packets to avoid huge packets when min duration defines are modified.
20070827172339-4f0f6-cc93304437ea376fff6458c74c46c19f6920d329.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
b65d589469 [MOVED FROM GST-P-FARSIGHT] Changing minimum values to work better on some gateways
20070827172322-4f0f6-5bf2bffa59a8244538dced795fa7d7649452ca91.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
71b9b27c29 [MOVED FROM GST-P-FARSIGHT] The DTMF tone generator now respects the volume argument passed in the event
20070822201653-4f0f6-8b7ff874006e11f5a74d0fd91e5a9a43cd082ada.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
aae79855ca [MOVED FROM GST-P-FARSIGHT] don't know why I did that...
20070822180133-4f0f6-6a7382f6c7d3630f91da384e1904763c7ea6fa1a.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
459f5c944e [MOVED FROM GST-P-FARSIGHT] Ported the event queue work from dtmfsrc to rtpdtmfsrc
Added a queue based system for the rtpdtmfsrc. Now it waits for start/stop messages on the queue, and makes sure that the minimum duty cycle (120ms) is respected between each
tone, including inter-digit silence.

20070822175533-4f0f6-f27414c406f1f7b00c9a9084a988cf3a7930fe5c.gz
2009-02-21 17:48:00 +01:00
Youness Alaoui
ca2f737659 [MOVED FROM GST-P-FARSIGHT] ouch, printing with arguments but without %s.. that made it segfault a few times...
20070822175444-4f0f6-445ea6ce7a9668d04cf999af772a504ec74fb67a.gz
2009-02-21 17:47:59 +01:00
Youness Alaoui
7e0aec2c94 [MOVED FROM GST-P-FARSIGHT] Moved the timestamp from the event to dtmfsrc structure since we have only one event at a time, so let's keep it stored in the dtmfsrc struct
20070822175126-4f0f6-53bcda2bd8ae8c56d29e62e69ac19a30e08ad350.gz
2009-02-21 17:47:59 +01:00
Youness Alaoui
7b9a2fd4ff [MOVED FROM GST-P-FARSIGHT] Added a queue based system for the dtmfsrc. Now it waits for start/stop messages on the queue, and makes sure that the minimum duty cycle (120ms) is respected between each tone, including inter-digit silence.
20070820203826-4f0f6-750a22b612a5e495e767666934465c34fe32074b.gz
2009-02-21 17:47:59 +01:00
Youness Alaoui
2a45c1b9d4 [MOVED FROM GST-P-FARSIGHT] Added dtmfsrc, a DTMF Tone Generator, and made it part of the 'dtmf' plugin.
20070820184852-4f0f6-a0d85e67708290aebafa89ab79d3cedd5815b620.gz
2009-02-21 17:47:59 +01:00
Youness Alaoui
0127d7b6e5 [MOVED FROM GST-P-FARSIGHT] Moved rtpdtmf to dtmf directory
20070820184800-4f0f6-fa33ea974510161de8c9951c39087af3613b65a4.gz
2009-02-21 17:47:59 +01:00
Olivier Crete
7a887a5187 [MOVED FROM GST-P-FARSIGHT] Send all packet from the streaming thread, including the last one
20070712195715-3e2dc-6848c70a7f0137c91fa882a8efb6dbf83891ae13.gz
2009-02-21 17:47:59 +01:00
Olivier Crete
074189363e [MOVED FROM GST-P-FARSIGHT] Put non-zero duration in first packet and put a minimum duration of 50ms
20070712195528-3e2dc-d46edeaab84fb55e74842bdcf4f8792dfcdb0457.gz
2009-02-21 17:47:59 +01:00
Olivier Crete
230ee96a32 [MOVED FROM GST-P-FARSIGHT] Fix RTP timestamp on dtmf packets
20070712162328-3e2dc-98c1303f4a52b891ce59bf88e07d29f4e2dfc974.gz
2009-02-21 17:47:59 +01:00
Olivier Crete
6a6a0b0755 [MOVED FROM GST-P-FARSIGHT] Only set marker on very first packet of an event
20070711155202-3e2dc-f7ea3abd2cb0ca2937ea4508e6e301baaa6e2154.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
3905482b3f [MOVED FROM GST-P-FARSIGHT] Send on packet start time
20070711155157-3e2dc-ee0e9fc13d35296593005267a2417dd65e790d29.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
2c955bfad3 [MOVED FROM GST-P-FARSIGHT] RTP timestamp is the time of the beginning of the dtmf event
20070711155056-3e2dc-cb5cda73fbf7df1c545cb0321b0e339914c5897f.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
9fe41ae280 [MOVED FROM GST-P-FARSIGHT] 80 column is enough for everyone
20070424200252-3e2dc-d1bc17266afff2599129a25d44338062372f7ea3.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
2a8042fa72 [MOVED FROM GST-P-FARSIGHT] Add redundancy and interval properties to rtpdtmfsrc (patch by SP GLE <spglegle@yahoo.fr>)
20070424193155-3e2dc-66688001e7b529c46f108633cd9520347c3c8c3e.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
eb74905991 [MOVED FROM GST-P-FARSIGHT] Only send dtmf if the method is unspecified or is 1
20070504195251-3e2dc-b95b4b8e8dad87962cf39ec2ee67b6f1b619e9bd.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
18344ae7b2 [MOVED FROM GST-P-FARSIGHT] Make documentation consistent with itself
20070308223559-3e2dc-cc20fe571370bc51bf963cc3df1b8ab4a3ddc20b.gz
2009-02-21 17:47:58 +01:00
Olivier Crete
516f1cb727 [MOVED FROM GST-P-FARSIGHT] Use segment to calculate dtmfsrc rtp timestamp
20070412200435-3e2dc-b5cc26b12b6e8b89f131fd27f0e4627746e85697.gz
2009-02-21 17:47:58 +01:00
zeeshan.ali@nokia.com
50dbdcc4e1 [MOVED FROM GST-P-FARSIGHT] Clean-up and refactorize dtmfsrc code
20070402124635-65035-3d13244461c1dd1fcc96b74124ad7a74d2ff0144.gz
2009-02-21 17:47:57 +01:00
Olivier Crete
f7d6d695aa [MOVED FROM GST-P-FARSIGHT] Ooops, little typo
20070330154303-3e2dc-9f6edcde24d30caea8ea876b24a3a680d40b2ea1.gz
2009-02-21 17:47:57 +01:00
Olivier Crete
e32fcbe2b0 [MOVED FROM GST-P-FARSIGHT] Make it generate the proper rtp timestamps in sync with the live source
20070330001700-3e2dc-bbf954e4edec0615c4eee603fbc6ab8a7d89436f.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
44328d3355 [MOVED FROM GST-P-FARSIGHT] Increment the ts after setting the buffer's ts
20070329114257-65035-c8686ab4ce20b1f36f3dac120485ade5cd90aac9.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
f1609fe6e2 [MOVED FROM GST-P-FARSIGHT] Calculate the rtp ts before gst ts get incremented
20070329103946-65035-f74e3a0140c57e941444bb837d6053ad1c3cf567.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
e158fabe85 [MOVED FROM GST-P-FARSIGHT] Some code-cleanup
20070329103904-65035-db08cc7c3098b60a556d3809de912cd0e1a545c1.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
e8c927e9f5 [MOVED FROM GST-P-FARSIGHT] Initialize the GstSegment at the right time
20070329103824-65035-9ab3a0a03c5f9329cd4625ae6567c2c1fd4a73d8.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
109b232e55 [MOVED FROM GST-P-FARSIGHT] Call set_caps when we have all the params
20070326105712-65035-3e3dfce0b50d61eafda846bee0a6d66c3541c6ed.gz
2009-02-21 17:47:57 +01:00
zeeshan.ali@nokia.com
ffe20dee18 [MOVED FROM GST-P-FARSIGHT] Set caps on the buffer before pushing it
20070323162922-65035-9e4be5449c79c0a459965ee07adb4a8143c4c1d5.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
19e3f39751 [MOVED FROM GST-P-FARSIGHT] Request for stream lock when generating DTMF packets
20070314171756-65035-0b497dfac203ff4f579525485d5804e5f5093b3f.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
8806b93151 [MOVED FROM GST-P-FARSIGHT] Correct caps printout
20070307114109-65035-124202884918a9c8a803080d6967234539d24b97.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
b6c3f86355 [MOVED FROM GST-P-FARSIGHT] Add doc-section comments
20070216120606-65035-6e7d28721dc0872f3f55ba7ccd4fed3d66f8175f.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
24659a3131 [MOVED FROM GST-P-FARSIGHT] Add copyrights
20070215134853-65035-50fe5f8e999ae86a1e3ba0dbdece4911eb9dcca0.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
2be160c741 [MOVED FROM GST-P-FARSIGHT] No need to handle downstream events
20070215133536-65035-648b791d404bf06900bd2698d925117c89743db9.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
221be0ea06 [MOVED FROM GST-P-FARSIGHT] Attempt to correct event handling
20070215122655-65035-47070d9a28c08d9353b04d2d9301e29b7ee72b83.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
04413fffc2 [MOVED FROM GST-P-FARSIGHT] Use pause_task instead of stop_task to avoid any possible deadlocks
20070215102629-65035-a48c773661e385a91e022e0ac1da0862c4206f85.gz
2009-02-21 17:47:56 +01:00
zeeshan.ali@nokia.com
b392c5041d [MOVED FROM GST-P-FARSIGHT] Put correct seq and timestamps on the packets
20070215101030-65035-7146a3c4a8d0feab513d13a207b2cdc5de311f03.gz
2009-02-21 17:47:55 +01:00