[Bug 742954] Crash when two treads are in handle_new_sample at the same time.

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jan 14 22:11:09 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=742954
  GStreamer | gst-rtsp-server | unspecified

--- Comment #1 from Göran Jönsson <goran.jonsson at axis.com> 2015-01-15 06:11:07 UTC ---
The adding of sleeps is wrong above, the second sleep is only when rtcp.
like this 

static GstFlowReturn
handle_new_sample (GstAppSink * sink, gpointer user_data)
,
,
,

  g_mutex_unlock (&priv->lock);

  if(!is_rtp)
    g_usleep(1000000);
  for (walk = priv->tr_cache; walk; walk = g_list_next (walk)) {
    GstRTSPStreamTransport *tr = (GstRTSPStreamTransport *) walk->data;

    if (is_rtp) {
      gst_rtsp_stream_transport_send_rtp (tr, buffer);
    } else {
      gst_rtsp_stream_transport_send_rtcp (tr, buffer);
    }
  }

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list