<commit_before>From c0043fcc2bfacd10112a6e98b1216d3840566e9a Mon Sep 17 00:00:00 2001
From: <NAME> <<EMAIL>>
Date: Mon, 6 Feb 2017 12:05:49 +0900
Subject: [PATCH] appsrc: Clear EOS on flush

Flushing the pipeline should clear the EOS flag so that buffers may be
sent once again.
---
 gst-libs/gst/app/gstappsink.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gst-libs/gst/app/gstappsink.c b/gst-libs/gst/app/gstappsink.c
index f6408d6..ca37465 100644
--- a/gst-libs/gst/app/gstappsink.c
+++ b/gst-libs/gst/app/gstappsink.c
@@ -595,6 +595,7 @@ gst_app_sink_event (GstBaseSink * sink, GstEvent * event)
       GST_DEBUG_OBJECT (appsink, "received FLUSH_STOP");
       gst_app_sink_flush_unlocked (appsink);
       g_mutex_unlock (&priv->mutex);
+      priv->is_eos = FALSE;
       break;
     default:
       break;
--
1.9.1
<commit_msg>Correct appsrc EOS sending patch<commit_after>From: <NAME> <<EMAIL>>
Date: Thu, 28 Sep 2017 18:20:42 +0900
Subject: [PATCH] appsrc: Clear EOS on flush

The currently preferred method of flushing a pipeline is to use
the FLUSH_START/STOP events, but these events are input at the
source pad of the pipeline source, and therefore are not passed
to the source plugin callback.  Instead do the processing in the
event callback on the plugin source pad.
---
 gst-libs/gst/app/gstappsrc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gst-libs/gst/app/gstappsrc.c b/gst-libs/gst/app/gstappsrc.c
index fff99e9..1bbe7b1 100644
--- a/gst-libs/gst/app/gstappsrc.c
+++ b/gst-libs/gst/app/gstappsrc.c
@@ -779,6 +779,7 @@ gst_app_src_send_event (GstElement * element, GstEvent * event)
     case GST_EVENT_FLUSH_STOP:
       g_mutex_lock (&priv->mutex);
       gst_app_src_flush_queued (appsrc, TRUE);
+      priv->is_eos = FALSE;
       g_mutex_unlock (&priv->mutex);
       break;
     default:
--
1.9.1

{'fraction_non_alphanumeric': 0.12112982074959261, 'fraction_numerical': 0.06735469853340575, 'mean_word_length': 3.5594059405940595, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 14, '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': '7156756', 'n_tokens_mistral': 812, 'n_tokens_neox': 710, 'n_words': 185}