+2004-07-09 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
+
+ * ext/alsa/gstalsa.c: (gst_alsa_change_state):
+ * ext/alsa/gstalsasink.c: (gst_alsa_sink_check_event),
+ (gst_alsa_sink_loop), (gst_alsa_sink_change_state):
+ * ext/alsa/gstalsasrc.c: (gst_alsa_src_change_state):
+ * ext/libvisual/visual.c: (gst_visual_change_state):
+ * ext/ogg/gstoggdemux.c: (gst_ogg_demux_change_state):
+ * ext/theora/theoradec.c: (theora_dec_change_state):
+ * ext/theora/theoraenc.c: (theora_enc_change_state):
+ * ext/vorbis/vorbisdec.c: (vorbis_dec_change_state):
+ * gst-libs/gst/navigation/navigation.c:
+ * gst/adder/gstadder.c: (gst_adder_change_state):
+ * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_chain),
+ (gst_audio_convert_get_buffer):
+ * gst/multipart/multipartdemux.c:
+ (gst_multipart_demux_change_state):
+ * gst/playback/gstdecodebin.c: (gst_decode_bin_change_state):
+ * gst/playback/gstplaybasebin.c: (gst_play_base_bin_change_state):
+ * gst/playback/gstplaybin.c: (gst_play_bin_change_state):
+ * gst/videoscale/gstvideoscale.c:
+ (gst_videoscale_handle_src_event):
+ * gst/volume/gstvolume.c: (volume_chain_int16):
+ don't assert in state change, this should be done by the base
+ GstElement class.
+ various debugging fixes.
+
2004-07-08 Thomas Vander Stichele <thomas (at) apestaart (dot) org>
* configure.ac:
break;
default:
- g_assert_not_reached ();
+ break;
}
if (GST_ELEMENT_CLASS (parent_class)->change_state)
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
+ break;
}
if (GST_ELEMENT_CLASS (sink_parent_class)->change_state)
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
+ break;
}
if (GST_ELEMENT_CLASS (src_parent_class)->change_state)
visual->actor = NULL;
break;
default:
- g_assert_not_reached ();
+ break;
}
if (GST_ELEMENT_CLASS (parent_class)->change_state)
GST_OGG_SET_STATE (ogg, GST_OGG_STATE_SEEK);
FOR_PAD_IN_CURRENT_CHAIN (ogg, pad,
- pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;);
+ pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;
+ );
GST_DEBUG_OBJECT (ogg, "initiating seeking to offset %" G_GUINT64_FORMAT,
offset);
ogg->seek_pad = cur;
gst_event_unref (event);
GST_FLAG_UNSET (ogg, GST_OGG_FLAG_WAIT_FOR_DISCONT);
FOR_PAD_IN_CURRENT_CHAIN (ogg, pad,
- pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;);
+ pad->flags |= GST_OGG_PAD_NEEDS_DISCONT;
+ );
break;
default:
gst_pad_event_default (pad, event);
*end = G_MAXINT64;
g_assert (ogg->current_chain >= 0);
- FOR_PAD_IN_CURRENT_CHAIN (ogg, pad, *start = MAX (*start, pad->end_offset););
+ FOR_PAD_IN_CURRENT_CHAIN (ogg, pad, *start = MAX (*start, pad->end_offset);
+ );
if (ogg->setup_state == SETUP_FIND_LAST_CHAIN) {
*end = gst_file_pad_get_length (ogg->sinkpad);
} else {
endpos = G_MAXINT64;
FOR_PAD_IN_CHAIN (ogg, pad, ogg->chains->len - 1,
- endpos = MIN (endpos, pad->start_offset););
+ endpos = MIN (endpos, pad->start_offset);
+ );
}
if (!ogg->seek_skipped || gst_ogg_demux_position (ogg) >= endpos) {
/* have we found the endposition for all streams yet? */
ogg_sync_clear (&ogg->sync);
break;
default:
- g_assert_not_reached ();
break;
}
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
break;
}
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
break;
}
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
break;
}
iface->send_event = NULL;
}
+/* The interface implementer should make sure that the object can handle
+ * the event. */
void
gst_navigation_send_event (GstNavigation * navigation, GstStructure * structure)
{
iface->send_event = NULL;
}
+/* The interface implementer should make sure that the object can handle
+ * the event. */
void
gst_navigation_send_event (GstNavigation * navigation, GstStructure * structure)
{
adder->offset = 0;
break;
case GST_STATE_PAUSED_TO_PLAYING:
- break;
case GST_STATE_PLAYING_TO_PAUSED:
- break;
case GST_STATE_PAUSED_TO_READY:
- break;
case GST_STATE_READY_TO_NULL:
- break;
default:
- g_assert_not_reached ();
break;
}
gst_pad_event_default (pad, GST_EVENT (buf));
return;
}
+ g_return_if_fail (GST_IS_BUFFER (buf));
if (!gst_pad_is_negotiated (this->sink)) {
GST_ELEMENT_ERROR (this, CORE, NEGOTIATION, (NULL),
{
GstBuffer *ret;
+ g_assert (GST_IS_BUFFER (buf));
+
GST_LOG
("new buffer of size %u requested. Current is: data: %p - size: %u - maxsize: %u",
size, buf->data, buf->size, buf->maxsize);
switch (GST_PAD_TEMPLATE_PRESENCE (templ)) {
case GST_PAD_ALWAYS:
{
- GstPad *pad =
- gst_element_get_pad (element,
+ GstPad *pad = gst_element_get_pad (element,
GST_PAD_TEMPLATE_NAME_TEMPLATE (templ));
+
if (pad) {
to_connect = g_list_prepend (to_connect, pad);
}
}
case GST_PAD_SOMETIMES:
{
- GstPad *pad =
- gst_element_get_pad (element,
+ GstPad *pad = gst_element_get_pad (element,
GST_PAD_TEMPLATE_NAME_TEMPLATE (templ));
+
if (pad) {
to_connect = g_list_prepend (to_connect, pad);
} else {
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
- break;
case GST_STATE_READY_TO_PAUSED:
- break;
case GST_STATE_PAUSED_TO_PLAYING:
- break;
case GST_STATE_PLAYING_TO_PAUSED:
- break;
case GST_STATE_PAUSED_TO_READY:
- break;
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
break;
}
gst_object_unref (GST_OBJECT (play_base_bin->thread));
break;
default:
- g_assert_not_reached ();
break;
}
setup_sinks (play_bin);
break;
case GST_STATE_PAUSED_TO_PLAYING:
- break;
case GST_STATE_PLAYING_TO_PAUSED:
- break;
case GST_STATE_PAUSED_TO_READY:
- break;
case GST_STATE_READY_TO_NULL:
break;
default:
- g_assert_not_reached ();
break;
}
}
gst_event_unref (event);
new_event = gst_event_new (GST_EVENT_NAVIGATION);
+ GST_DEBUG_OBJECT (videoscale, "creating new NAVIGATION event %p",
+ new_event);
new_event->event_data.structure.structure = structure;
return gst_pad_event_default (pad, new_event);
break;
default:
+ GST_DEBUG_OBJECT (videoscale, "passing on non-NAVIGATION event %p",
+ event);
return gst_pad_event_default (pad, event);
break;
}
gint16 *data;
gint i, num_samples;
+ g_return_if_fail (_data);
g_return_if_fail (GST_IS_PAD (pad));
g_return_if_fail (buf != NULL);
filter = GST_VOLUME (GST_OBJECT_PARENT (pad));
g_return_if_fail (GST_IS_VOLUME (filter));
+ GST_LOG_OBJECT (filter, "processing incoming buffer with refcount %d",
+ GST_BUFFER_REFCOUNT_VALUE (buf));
out_buf = gst_buffer_copy_on_write (buf);
data = (gint16 *) GST_BUFFER_DATA (out_buf);
}
gst_pad_push (filter->srcpad, GST_DATA (out_buf));
-
}
static void