[pulseaudio-tickets] [Bug 39797] [pulseaudio-bug] module-cork-music-on-phone not able to send CORK event to gst pulse-sink for PA_STREAM_START_CORKED flagged streams

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 3 05:19:26 PDT 2011


https://bugs.freedesktop.org/show_bug.cgi?id=39797

--- Comment #3 from Himanshu Chug <himanshu.chug at gmail.com> 2011-08-03 05:19:26 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> > The last time I looked the GST pulsesink code simply didn't listen for the cork
> > event we send. If that is still the case, this is just a GST bug (or lack of
> > feature) rather than a PA bug.
> > 
> > Arun will know.... :p
> 
> 
> Hi Colin, 
> 
> Reverse Usecase i.e playing music stream first and then "phone" stream next is
> working fine and I can see CORK request callback in
> gst_pulsering_stream_event_cb(), 
> 
> So the callback for receiving events is available in gst-pulsesink , but the
> event is somehow not reached to GST in this case.
> 
> Best Regards,
> Himanshu


we need to install the new property "role" to get this support in gst-pulsesink
like here:

static void
gst_pulsesink_class_init (GstPulseSinkClass * klass)
{
...........

  g_object_class_install_property (gobject_class, PROP_MEDIA_ROLE,
      g_param_spec_string ("role", "Role",
          "The PulseAudio stream media role", DEFAULT_MEDIA_ROLE,
          G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS))

}

otherwise to reproduce this issue, we can modify paplay app to create a new
stream with role property using 

pa_proplist_sets(pl, PA_PROP_MEDIA_ROLE, "phone");
pa_stream_new_with_proplist (,,pl);

and creating other stream ( for music role)from gst-pulsesink, I guess the
default role of a gst stream is music, so that way it work out.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the pulseaudio-bugs mailing list