<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">Hello,</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">I have a gstreamer application and have added a bus watch to the GstBus of the pipeline. In the call back method for this bus watch, I am detecting the message type GST_<span style="font-style: italic;">MESSAGE_</span>BUFFERING. The goal is to “post” this message to the bus of a particular GstElement in the running pipeline.</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">My questions:</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">- Is this possible?</div><div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">- Is it possible instead to access the bus of the running pipeline from inside a gstreamer filter and post a message to the pipeline’s bus directly from the filter?</div><div><font face="Calibri,sans-serif">- Why do gst_<i>bus_post(element’s bus, msg) AND gst_</i><span style="font-style: italic;">element_</span>post_message(element, message) not work?</font></div><div><font face="Calibri,sans-serif"><br></font></div><div>Here’s my sample code:</div><div><br></div><div>Inside the app:</div><div><br></div><div><div> case GST_MESSAGE_BUFFERING:</div><div> {</div><div> gint percent;</div><div> GstElement* filter = NULL;</div><div> GstBus* mybus = NULL;</div><div><br></div><div> gst_message_parse_buffering(msg, &percent);</div><div> if (pipeline != NULL)</div><div> {</div><div> filter = gst_bin_get_by_name(GST_BIN(pipeline), gst_element_get_name(myfilter));</div></div><div><div> mybus = gst_element_get_bus(filter);</div><div><br></div><div> gst_bus_post(mybus, msg); // Wont work.</div><div> gst_element_post_message(filter, msg); //Wont work either.</div><div> gst_object_unref(mabus);</div><div> g_free(filter);</div></div><div> }</div><div> }</div><div><br></div><div><br></div><div><br></div><div>Thanks for pointing out what’s not right here.</div><div><br></div><div>Kamal</div></body></html>