Пример #1
0
        public static void Stop()
        {
            try
            {
                if (client != null)
                {
                    client.Close();
                }
                client = null;
            }
            catch { }

            try
            {
                if (tcpclient != null)
                {
                    tcpclient.Close();
                }
                tcpclient = null;
            }
            catch { }

            try
            {
                GStreamer.Stop();
            }
            catch { }
        }
Пример #2
0
        public static void Stop()
        {
            try
            {
                if (client != null)
                {
                    client.Close();
                }
                client = null;
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }

            try
            {
                if (tcpclient != null)
                {
                    tcpclient.Close();
                }
                tcpclient = null;
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }

            try
            {
                GStreamer.Stop(gst);
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
        }