如果我们在控制台应用程序上执行以下C#代码,我们将收到一条消息The sums are Not equal.
如果我们在取消注释该行后执行它System.Console.WriteLine(),我们将收到一条消息The sums are equal.
static void Main(string[] args)
{
float f = Sum(0.1f, 0.2f);
float g = Sum(0.1f, 0.2f);
//System.Console.WriteLine("f = " + f + " and g = " + g);
if (f == g)
{
System.Console.WriteLine("The sums are equal");
}
else
{
System.Console.WriteLine("The sums are Not equal");
}
}
static float Sum(float a, float b)
{
System.Console.WriteLine(a + b);
return a + b;
}
Run Code Online (Sandbox Code Playgroud)
这种行为的实际原因是什么?
我是 GSTreamer 的新手。我尝试使用 GStreamer 上传视频。在运行以下命令时,
gst-launch-1.0 videotestsrc !udpsink 端口=5200
我收到如下警告。
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Attempting to send a UDP packets larger than maximum size (115200 > 65507)
Additional debug info:
gstmultiudpsink.c(715): gst_multiudpsink_send_messages (): /GstPipeline:pipeline0/GstUDPSink:udpsink0:
Reason: Error sending message: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
0:00:56.934530706 4912 0000000002F09640 WARN multiudpsink gstmultiudpsink.c:715:gst_multiudpsink_send_messages:<udpsink0> warning: Attempting …Run Code Online (Sandbox Code Playgroud) 执行以下命令时
gst-launch-1.0 filesrc location = Wildlife.wmv!decodebin!排队!ffmpegcolorspace!autovideosink dec.!排队!audioconvert!听觉样本!autoaudiosink
我得到如下错误.
ERROR GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "ffmpegcolorspace"
ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [source=@0000000003066F90]
ERROR GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [sink=@000000000306B060]
ERROR GST_PIPELINE grammar.y:1138:priv_gst_parse_launch: No src-element named "dec" - omitting link
WARNING: erroneous pipeline: no element "ffmpegcolorspace"
Run Code Online (Sandbox Code Playgroud)
这里有什么问题?