<commit_before>negotiation_test
================

Gstreamer negotiation test<commit_msg>Update readme with test information<commit_after>negotiation_test
================

  This test creates a simple pipeline and forces caps renegotiation once the
  GST_MESSAGE_STREAM_START is received on bus. It terminates correctly if the
  appsink receives a buffer with the renegotiated format.

  This program runs a test continuously until it fails or it is executed a
  number of times selected by the used with -n option (1000000 by default).

  If option -q is given, the pipeline is this:

```
    --------------      -------      ---------
   | audiotestsrc | -> | queue | -> | appsink |
    --------------      -------      ---------
```

  This test frequently fails  (1 on 15?), because audiotestsrc receive a
  not negotiated error while pushing a buffer or because no buffer whith
  the new format is received.

   If -q option is not present the pipeline is this:

```
    --------------      ---------
   | audiotestsrc | -> | appsink |
    --------------      ---------
```

  This second pipeline works propertly and renegotiates correctly.
{'fraction_non_alphanumeric': 0.1649214659685864, 'fraction_numerical': 0.008726003490401396, 'mean_word_length': 2.2219101123595504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3326707', 'n_tokens_mistral': 303, 'n_tokens_neox': 276, 'n_words': 125}