<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I do it this way:<br>
    &nbsp;&nbsp;&nbsp; GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(m_pipe));<br>
    &nbsp;&nbsp;&nbsp; gst_bus_add_watch(bus, (GstBusFunc)bus_callback, m_pipe);<br>
    &nbsp;&nbsp;&nbsp; gst_object_unref(GST_OBJECT(bus));<br>
    <br>
    void bus_callback(GstBus *bus, GstMessage *msg, gpointer data)<br>
    {<br>
    // handle messages here<br>
    }<br>
    <br>
    Regards,<br>
    <br>
    <br>
    <br>
    On 21.03.2012 11:04, Bernhard Graaf wrote:
    <blockquote cite="mid:6D496CAF8AB84299839E95C81AA93339@BGraafPC"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial">Hi @ all,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:10.0pt;
              font-family:Arial"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:
              10.0pt;font-family:Arial" lang="EN-GB">One short question:
              Is it possible to get the
              messages from the bus without using the gstreamer loop
              (for example using the
              gtk+ loop)?<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:
              10.0pt;font-family:Arial" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:
              10.0pt;font-family:Arial" lang="EN-GB">Thanks a lot for
              helping!<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size:
              10.0pt;font-family:Arial" lang="EN-GB">Bernhard<o:p></o:p></span></font></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>