summaryrefslogtreecommitdiff
path: root/gst/videoparsers/gsth263parse.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-02 18:30:22 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-04-09 00:24:03 +0100
commit5365dbfdce14f8314d0d8507bcd837f0a361717b (patch)
tree657f032476d56e2233f3b461a62efed5dad0c507 /gst/videoparsers/gsth263parse.c
parent38c6f6366c6ee089bde86f171050b6bef6452fda (diff)
downloadgstreamer-plugins-bad-5365dbfdce14f8314d0d8507bcd837f0a361717b.tar.gz
videoparsers: port to baseparse, which is now in libgstbase in core
Diffstat (limited to 'gst/videoparsers/gsth263parse.c')
-rw-r--r--gst/videoparsers/gsth263parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/videoparsers/gsth263parse.c b/gst/videoparsers/gsth263parse.c
index e6e94acf1..d77a9c7d8 100644
--- a/gst/videoparsers/gsth263parse.c
+++ b/gst/videoparsers/gsth263parse.c
@@ -273,7 +273,7 @@ gst_h263_parse_check_valid_frame (GstBaseParse * parse,
next_psc_pos = find_psc (buffer, next_psc_pos);
if (next_psc_pos == -1) {
- if (GST_BASE_PARSE_FRAME_DRAIN (frame))
+ if (GST_BASE_PARSE_DRAINING (parse))
/* FLUSH/EOS, it's okay if we can't find the next frame */
next_psc_pos = GST_BUFFER_SIZE (buffer);
else
@@ -290,11 +290,11 @@ gst_h263_parse_check_valid_frame (GstBaseParse * parse,
res = gst_h263_parse_get_params (&params, buffer, FALSE, &h263parse->state);
if (res != GST_FLOW_OK || h263parse->state != GOT_HEADER) {
GST_WARNING ("Couldn't parse header - setting passthrough mode");
- gst_base_parse_set_format (parse,
- GST_BASE_PARSE_FORMAT_PASSTHROUGH, TRUE);
+ gst_base_parse_set_passthrough (parse, TRUE);
} else {
/* Set srcpad caps since we now have sufficient information to do so */
gst_h263_parse_set_src_caps (h263parse, &params);
+ gst_base_parse_set_passthrough (parse, FALSE);
}
}
@@ -337,7 +337,7 @@ gst_h263_parse_parse_frame (GstBaseParse * parse, GstBaseParseFrame * frame)
* parse the header, which should not be possible. Either way, go into
* passthrough mode and let downstream handle it if it can. */
GST_WARNING ("Couldn't parse header - setting passthrough mode");
- gst_base_parse_set_format (parse, GST_BASE_PARSE_FORMAT_PASSTHROUGH, TRUE);
+ gst_base_parse_set_passthrough (parse, TRUE);
goto out;
}