src/3rdparty/phonon/gstreamer/gsthelper.cpp
changeset 30 5dc02b23752f
parent 0 1918ee327afb
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   119  */
   119  */
   120 GstElement* GstHelper::createPluggablePlaybin()
   120 GstElement* GstHelper::createPluggablePlaybin()
   121 {
   121 {
   122     GstElement *playbin = 0;
   122     GstElement *playbin = 0;
   123     //init playbin and add to our pipeline
   123     //init playbin and add to our pipeline
   124     playbin = gst_element_factory_make("playbin", NULL);
   124     playbin = gst_element_factory_make("playbin2", NULL);
   125 
   125 
   126     //Create an identity element to redirect sound
   126     //Create an identity element to redirect sound
   127     GstElement *audioSinkBin =  gst_bin_new (NULL);
   127     GstElement *audioSinkBin =  gst_bin_new (NULL);
   128     GstElement *audioPipe = gst_element_factory_make("identity", NULL);
   128     GstElement *audioPipe = gst_element_factory_make("identity", NULL);
   129     gst_bin_add(GST_BIN(audioSinkBin), audioPipe);
   129     gst_bin_add(GST_BIN(audioSinkBin), audioPipe);