diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-05-03 18:08:41 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2014-05-03 22:31:58 +0300 |
commit | 8d366fca755b31265d095585b5f208079df4f4c3 (patch) | |
tree | c91b333596fff79c0223570edc9ee81624709ae1 | |
parent | f63d953647ba3ac09722c9d7edf57380fa07a71a (diff) |
examples/voip: fix caps and element names for 1.0
-rw-r--r-- | examples/voip/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/voip/main.cpp b/examples/voip/main.cpp index 68e73ea..cf3865b 100644 --- a/examples/voip/main.cpp +++ b/examples/voip/main.cpp @@ -43,7 +43,7 @@ '-------' | | '----------' - In the two sessions, the gstrtpbin element is common and the sessions are + In the two sessions, the rtpbin element is common and the sessions are distinguished from the number at the end of rtpbin's pad names. */ @@ -106,9 +106,9 @@ void VoipExample::on_startCallButton_clicked() { m_pipeline = QGst::Pipeline::create(); - QGst::ElementPtr rtpbin = QGst::ElementFactory::make("gstrtpbin"); + QGst::ElementPtr rtpbin = QGst::ElementFactory::make("rtpbin"); if (!rtpbin) { - qFatal("Failed to create gstrtpbin"); + qFatal("Failed to create rtpbin"); } m_pipeline->add(rtpbin); @@ -118,7 +118,7 @@ void VoipExample::on_startCallButton_clicked() QGst::ElementPtr audiosrc; try { audiosrc = QGst::Bin::fromDescription( - "autoaudiosrc ! queue ! audioconvert ! audiorate ! audio/x-raw-int,rate=8000 " + "autoaudiosrc ! queue ! audioconvert ! audiorate ! audio/x-raw,rate=8000 " "! speexenc ! rtpspeexpay" ); } catch (const QGlib::Error & error) { @@ -173,7 +173,7 @@ void VoipExample::on_startCallButton_clicked() QGst::ElementPtr videosrc; try { videosrc = QGst::Bin::fromDescription( - "videotestsrc is-live=true ! video/x-raw-yuv,width=320,height=240,framerate=15/1 " + "videotestsrc is-live=true ! video/x-raw,width=320,height=240,framerate=15/1 " "! x264enc tune=zerolatency byte-stream=true bitrate=300 ! rtph264pay" ); } catch (const QGlib::Error & error) { @@ -248,7 +248,7 @@ void VoipExample::onRtpBinPadAdded(const QGst::PadPtr & pad) ); } else { bin = QGst::Bin::fromDescription( - "rtph264depay ! ffdec_h264 ! ffmpegcolorspace ! autovideosink" + "rtph264depay ! avdec_h264 ! videoconvert ! autovideosink" ); } } catch (const QGlib::Error & error) { |