[gst-devel] Patch for gstparsewav.c, fixing typefind

Thomas Nyberg thomas at codefactory.se
Wed May 2 12:53:58 CEST 2001


This is a very small patch to allow typefind for gstparsewav.
Most of the things were already there, but this should make
it work all the way. Mostly a couple of function-calls missing.

<--snip-->

Index: plugins/wav/gstparsewav.c
===================================================================
RCS file: /cvsroot/gstreamer/gstreamer/plugins/wav/gstparsewav.c,v
retrieving revision 1.12
diff -r1.12 gstparsewav.c
112c112
< {
---
> {	
113a114,117
>   GstCaps *new;
> 
>   if (strncmp(&data[0], "RIFF", 4)) return NULL;
>   if (strncmp(&data[8], "WAVE", 4)) return NULL;
115,116c119
<   if (strncmp(&data[0], "RIFF", 4)) return FALSE;
<   if (strncmp(&data[8], "WAVE", 4)) return FALSE;
---
>   new = gst_caps_new("wav_typefind", "audio/wav", NULL);
118c121
<   return NULL;
---
>   return new;
306a310,312
> 
>   gst_type_register(&wavfactory);
>   gst_plugin_add_type(plugin, &wavfactory);

<--snip-->

/Thomas <thomas at codefactory.se>

-- 
Thomas Nyberg                    thomas.nyberg at codefactory.se
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 10       Cell: +46 (0)70 335 61 64





More information about the gstreamer-devel mailing list