[gst-devel] [PATCH] alsa frequent xruns

Benjamin Otte in7y118 at public.uni-hamburg.de
Sun Jul 4 09:35:02 CEST 2004


I'm not sure why this fixes something or especially what the problem is in the
first place, but since I don't see a good reason to not apply that patch either,
I'll just commit it.

Benjamin


Quoting Giuliano Pochini <pochini at shiny.it>:

> 
> 
> The following patch fixes the problem I reported a few day ago. With this
> patch gstreamer doesn't xrun all the time anymore. I simply moved the
> stop/start part inside the if(xrun){}.
> 
> 
> 
> --- ext/alsa/gstalsa.c_o        Wed Jun 23 14:31:58 2004
> +++ ext/alsa/gstalsa.c  Fri Jul  2 23:13:14 2004
> @@ -1264,12 +1264,12 @@
>          this->period_count *= 2;
>        }
>      }
> -  }
>  
> -  if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
> -    GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
> -        ("Error restarting audio after xrun"));
> -    return FALSE;
> +    if (!(gst_alsa_stop_audio (this) && gst_alsa_start_audio (this))) {
> +      GST_ELEMENT_ERROR (this, RESOURCE, FAILED, (NULL),
> +          ("Error restarting audio after xrun"));
> +      return FALSE;
> +    }
>    }
>  
>    return TRUE;
> 
> 
> 
> --
> Giuliano.
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 






More information about the gstreamer-devel mailing list