~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty

« back to all changes in this revision

Viewing changes to tests/examples/stepping/framestep1.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-08-08 18:12:33 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120808181233-riejwxprfsxh1njl
Tags: 0.11.93-1
* New upstream release:
  + debian/libgstreamer.symbols:
    - Update symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
 
124
124
  /* step two frames, flush so that new preroll is queued */
125
125
  g_message ("stepping three frames");
126
 
  g_assert (gst_element_send_event (bin,
127
 
          gst_event_new_step (GST_FORMAT_BUFFERS, 2, 1.0, TRUE, FALSE)));
 
126
  if (!gst_element_send_event (bin,
 
127
          gst_event_new_step (GST_FORMAT_BUFFERS, 2, 1.0, TRUE, FALSE)))
 
128
    g_warning ("Filed to send STEP event!");
128
129
 
129
130
  /* blocks and returns when we received the step done message */
130
131
  event_loop (bin);
138
139
 
139
140
  /* step 3 frames, flush so that new preroll is queued */
140
141
  g_message ("stepping 120 milliseconds ");
141
 
  g_assert (gst_element_send_event (bin,
 
142
  if (!gst_element_send_event (bin,
142
143
          gst_event_new_step (GST_FORMAT_TIME, 120 * GST_MSECOND, 1.0, TRUE,
143
 
              FALSE)));
 
144
              FALSE)))
 
145
    g_warning ("Filed to send STEP event!");
144
146
 
145
147
  /* blocks and returns when we received the step done message */
146
148
  event_loop (bin);