From 17db314fa59a0e8b7a799e88d5e58184a956e08f Mon Sep 17 00:00:00 2001 From: Melissa Montero Date: Tue, 27 Oct 2020 13:25:55 -0600 Subject: [PATCH] interpipesrc: clean appsrc caps at stop This cleans the appsrc caps at stop state, cleaning the negotiated state so when the pipeline is restarted it can initiate a clean negotiation process. --- gst/interpipe/gstinterpipesrc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/interpipe/gstinterpipesrc.c b/gst/interpipe/gstinterpipesrc.c index fd4c587..1a94eff 100644 --- a/gst/interpipe/gstinterpipesrc.c +++ b/gst/interpipe/gstinterpipesrc.c @@ -404,10 +404,12 @@ gst_inter_pipe_src_stop (GstBaseSrc * base) GstBaseSrcClass *basesrc_class; GstInterPipeSrc *src; GstInterPipeIListener *listener; + GstAppSrc *appsrc; basesrc_class = GST_BASE_SRC_CLASS (gst_inter_pipe_src_parent_class); src = GST_INTER_PIPE_SRC (base); listener = GST_INTER_PIPE_ILISTENER (src); + appsrc = GST_APP_SRC (src); if (src->listening) { GST_INFO_OBJECT (src, "Removing listener from node %s", src->listen_to); @@ -415,6 +417,9 @@ gst_inter_pipe_src_stop (GstBaseSrc * base) src->listening = FALSE; } + GST_INFO_OBJECT (src, "Cleaning appsrc caps"); + gst_app_src_set_caps (appsrc, NULL); + return basesrc_class->stop (base); }