From: <kak...@us...> - 2009-08-09 21:54:13
|
Revision: 11458 http://amsn.svn.sourceforge.net/amsn/?rev=11458&view=rev Author: kakaroto Date: 2009-08-09 21:54:06 +0000 (Sun, 09 Aug 2009) Log Message: ----------- Make custom sinks chosen set to sync=async=false... without it, custom sinks won't work, but with it, some sinks *might* cause G_WARNINGs on the console... a better fix would be to search for the sink in the custom sink chosen (in case of a pipeline), but it won't work with autoaudiosink because we must hook up to the element-added signal... Modified Paths: -------------- trunk/amsn/utils/farsight/src/tcl_farsight.c trunk/amsn/utils/farsight/tcl_farsight.dylib Modified: trunk/amsn/utils/farsight/src/tcl_farsight.c =================================================================== --- trunk/amsn/utils/farsight/src/tcl_farsight.c 2009-08-09 21:42:18 UTC (rev 11457) +++ trunk/amsn/utils/farsight/src/tcl_farsight.c 2009-08-09 21:54:06 UTC (rev 11458) @@ -907,6 +907,11 @@ snk = gst_element_factory_make (audio_sink, NULL); if (snk && audio_sink_device) g_object_set(snk, "device", audio_sink_device, NULL); + if (snk) { + g_object_set(snk, "sync", FALSE, NULL); + g_object_set(snk, "async", FALSE, NULL); + } + } if (snk == NULL) { snk = gst_element_factory_make ("autoaudiosink", NULL); @@ -1445,6 +1450,10 @@ } } else if (video_sink) { snk = gst_element_factory_make (video_sink, NULL); + if (snk) { + g_object_set (snk, "async", FALSE, NULL); + g_object_set (snk, "sync", FALSE, NULL); + } } if (snk == NULL) { #ifdef __APPLE__ Modified: trunk/amsn/utils/farsight/tcl_farsight.dylib =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |