summaryrefslogtreecommitdiffstats
path: root/gst/auparse
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-09-22 07:55:37 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-09-22 07:55:37 +0000
commit881982fdd1df4ff14bafe250977a760d1365f8f3 (patch)
tree0f8641bc314f7f8a7792f67aa9bdbee466dcdc87 /gst/auparse
parent1b173507cb65ee9718bcde07373c144ee336fdb4 (diff)
gst/asfdemux/gstasfdemux.c: Prevent infinite loops. More correct error reporting.
Original commit message from CVS: * gst/asfdemux/gstasfdemux.c: (_read_var_length), (_read_guid), (gst_asf_demux_process_segment), (gst_asf_demux_handle_data), (gst_asf_demux_process_chunk), (gst_asf_demux_handle_sink_event): Prevent infinite loops. More correct error reporting. * gst/auparse/gstauparse.c: (gst_auparse_chain): Error out if negotiation fails. * gst/playback/gstplaybasebin.c: (setup_source), (gst_play_base_bin_change_state), (gst_play_base_bin_error), (gst_play_base_bin_found_tag): Error/tag forwarding. Pre-roll fixes for source errors on state changes (e.g. "file does not exist") to prevent hangs.
Diffstat (limited to 'gst/auparse')
-rw-r--r--gst/auparse/gstauparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/auparse/gstauparse.c b/gst/auparse/gstauparse.c
index 944e0bd6..a9a764f3 100644
--- a/gst/auparse/gstauparse.c
+++ b/gst/auparse/gstauparse.c
@@ -340,6 +340,7 @@ Samples :
}
if (!gst_pad_set_explicit_caps (auparse->srcpad, tempcaps)) {
+ GST_ELEMENT_ERROR (auparse, CORE, NEGOTIATION, (NULL), (NULL));
gst_buffer_unref (buf);
gst_object_unref (GST_OBJECT (auparse->srcpad));
auparse->srcpad = NULL;