[Bug 709833] Cannot set playspeed !=1 on Mpeg TS played trough soupthhsrc

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Oct 11 12:01:18 CEST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=709833
  GStreamer | gst-plugins | 1.x

--- Comment #3 from Eric <etrousset at awox.com> 2013-10-11 10:01:12 UTC ---
I added a seek after pipeline is set to playing in gst-launch around line 1079

      if( playspeed != 1)      {
          PRINT (_("Setting playspeed to %.2fx\n"), playspeed);
          if( !gst_element_seek(GST_ELEMENT(pipeline),playspeed,
GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH|GST_SEEK_FLAG_SNAP_NEAREST,
GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE) )          {
              PRINT(_("Failed to set playspeed!\n"));
          }
      }

after :

    PRINT (_("Setting pipeline to PLAYING ...\n"));

      if (gst_element_set_state (pipeline,
              GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
        GstMessage *err_msg;
        GstBus *bus;

        g_printerr (_("ERROR: pipeline doesn't want to play.\n"));
        bus = gst_element_get_bus (pipeline);
        if ((err_msg = gst_bus_poll (bus, GST_MESSAGE_ERROR, 0))) {
          print_error_message (err_msg);
          gst_message_unref (err_msg);
        }
        gst_object_unref (bus);
        res = -1;
        goto end;
      }

playspeed is set via a command arg I added.

-- 
Configure bugmail: https://bugzilla.gnome.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 gstreamer-bugs mailing list