From 1ec82dec7203d670fa7bd7de48cafc52228a4e9d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Jun 2008 16:50:51 +0000 Subject: examples/app/: Added 3 more example application for using appsrc in random-access mode, pull-mode streaming and pull ... Original commit message from CVS: * examples/app/Makefile.am: * examples/app/appsrc-ra.c: (feed_data), (seek_data), (found_source), (bus_message), (main): * examples/app/appsrc-seekable.c: (feed_data), (seek_data), (found_source), (bus_message), (main): * examples/app/appsrc-stream2.c: (feed_data), (found_source), (bus_message), (main): Added 3 more example application for using appsrc in random-access mode, pull-mode streaming and pull mode seekable. * gst-libs/gst/app/gstappsrc.c: (gst_app_src_class_init), (gst_app_src_start), (gst_app_src_do_get_size), (gst_app_src_create): * gst-libs/gst/app/gstappsrc.h: Make stream-type property writable. Unset flushing when starting so that we reuse appsrc. Inform basesrc about the configured size. Emit seek-data signal when we are going to a different offset in random-access mode. --- gst-libs/gst/app/gstappsrc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gst-libs/gst/app/gstappsrc.h') diff --git a/gst-libs/gst/app/gstappsrc.h b/gst-libs/gst/app/gstappsrc.h index 1ce73b4c..f8173dc9 100644 --- a/gst-libs/gst/app/gstappsrc.h +++ b/gst-libs/gst/app/gstappsrc.h @@ -76,6 +76,7 @@ struct _GstAppSrc gboolean started; gboolean is_eos; guint64 queued_bytes; + guint64 offset; GstAppStreamType current_type; }; -- cgit v1.2.1