[gstreamer-bugs] [Bug 431282] broken depayloaders

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Apr 23 00:58:49 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=431282

  GStreamer | gst-plugins-good | Ver: HEAD CVS




------- Comment #4 from Laurent Glayal  2007-04-23 07:58 UTC -------
Hi,
removing the line 'filter->clock_rate = 0;' in the following function seems to
solve the problem.

static GstStateChangeReturn
gst_base_rtp_depayload_change_state (GstElement * element,
    GstStateChange transition)
{
  GstBaseRTPDepayload *filter;
  GstStateChangeReturn ret;

  filter = GST_BASE_RTP_DEPAYLOAD (element);

  /* we disallow changing the state from the thread */
  if (g_thread_self () == filter->thread)
    goto wrong_thread;

  switch (transition) {
    case GST_STATE_CHANGE_NULL_TO_READY:
      if (!gst_base_rtp_depayload_start_thread (filter))
        goto start_failed;
      break;
    case GST_STATE_CHANGE_READY_TO_PAUSED:
    GST_DEBUG_OBJECT (filter, "Removed clock_rate overwritting");
      /* clock_rate needs to be overwritten by child */
/*      filter->clock_rate = 0; */
      filter->priv->clock_base = -1;
      filter->need_newsegment = TRUE;

      break;
    case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
      break;
    default:
      break;
  }
...

Regards.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=431282.




More information about the Gstreamer-bugs mailing list