mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
mpegtbase: Small rewrite
Setting done was useless anyway
This commit is contained in:
parent
651a4ae2e7
commit
1b5e514a05
1 changed files with 4 additions and 8 deletions
|
@ -1194,12 +1194,10 @@ mpegts_base_scan (MpegTSBase * base)
|
|||
GST_DEBUG ("Grabbing %d => %d", i * 65536, 65536);
|
||||
|
||||
ret = gst_pad_pull_range (base->sinkpad, i * 65536, 65536, &buf);
|
||||
if (G_UNLIKELY (ret == GST_FLOW_EOS)) {
|
||||
done = TRUE;
|
||||
if (G_UNLIKELY (ret == GST_FLOW_EOS))
|
||||
break;
|
||||
} else if (G_UNLIKELY (ret != GST_FLOW_OK)) {
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK))
|
||||
goto beach;
|
||||
}
|
||||
|
||||
/* Push to packetizer */
|
||||
mpegts_packetizer_push (base->packetizer, buf);
|
||||
|
@ -1247,12 +1245,10 @@ mpegts_base_scan (MpegTSBase * base)
|
|||
GST_DEBUG ("Grabbing %" G_GUINT64_FORMAT " => %d", seek_pos, 65536);
|
||||
|
||||
ret = gst_pad_pull_range (base->sinkpad, seek_pos, 65536, &buf);
|
||||
if (G_UNLIKELY (ret == GST_FLOW_EOS)) {
|
||||
done = TRUE;
|
||||
if (G_UNLIKELY (ret == GST_FLOW_EOS))
|
||||
break;
|
||||
} else if (G_UNLIKELY (ret != GST_FLOW_OK)) {
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK))
|
||||
goto beach;
|
||||
}
|
||||
|
||||
/* Push to packetizer */
|
||||
mpegts_packetizer_push (base->packetizer, buf);
|
||||
|
|
Loading…
Reference in a new issue