gst/qtdemux/qtdemux.c: Return the result of gst_pad_{start,stop}_task instead of hard-coded

Original commit message from CVS:
* gst/qtdemux/qtdemux.c:
Return the result of gst_pad_{start,stop}_task instead of hard-coded
TRUE.
This commit is contained in:
Stefan Kost 2008-08-04 07:23:07 +00:00
parent 115636d6d6
commit 815eb01af1
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2008-08-04 Stefan Kost <ensonic@users.sf.net>
* gst/qtdemux/qtdemux.c:
Return the result of gst_pad_{start,stop}_task instead of hard-coded
TRUE.
2008-08-04 Stefan Kost <ensonic@users.sf.net>
* gst/qtdemux/qtdemux.c:

View file

@ -2296,13 +2296,12 @@ qtdemux_sink_activate_pull (GstPad * sinkpad, gboolean active)
if (active) {
demux->pullbased = TRUE;
demux->segment_running = TRUE;
gst_pad_start_task (sinkpad, (GstTaskFunction) gst_qtdemux_loop, sinkpad);
return gst_pad_start_task (sinkpad, (GstTaskFunction) gst_qtdemux_loop,
sinkpad);
} else {
demux->segment_running = FALSE;
gst_pad_stop_task (sinkpad);
return gst_pad_stop_task (sinkpad);
}
return TRUE;
}
static gboolean