Matthew Waters
5a5a548b09
plugins: Don't force 64-bit file/seek functions variants on android
...
Most functions are automatically chosen from the _FILE_OFFSET_BITS
define, the remaining one (fstat) is only available on API >= 21 so
check for that
2018-03-02 18:25:21 +11:00
Thibault Saunier
a87b4551a6
Port gtk-doc comments to their equivalent markdown syntax
...
Modernizing our documentation and preparing a possible move to hotdoc.
This commits also adds missing @title metadatas to all SECTIONs
2017-01-27 16:36:38 -03:00
Edward Hervey
6b73bf38d1
filesrc: Set GError in another error case
...
When changing the location while open, properly set the GError regarding
the failure.
2016-12-12 16:19:13 +01:00
Tim-Philipp Müller
cf0680017e
elements: use new gst_element_class_add_static_pad_template()
...
https://bugzilla.gnome.org/show_bug.cgi?id=762778
2016-02-28 13:10:07 +00:00
Edward Hervey
555df9d614
plugins: Check return values of gst_buffer_map()
...
They can fail for various reasons.
For non-fatal cases (such as the dump feature of identiy and fakesink),
we just silently skip it.
For other cases post an error message.
https://bugzilla.gnome.org/show_bug.cgi?id=728326
2016-02-23 17:30:45 +01:00
Reynaldo H. Verdejo Pinochet
a7f8ad9c9a
filesrc: enable large file support in Android
...
https://bugzilla.gnome.org/show_bug.cgi?id=758980
2015-12-09 14:15:26 -08:00
Tim-Philipp Müller
1a9a3c7ef9
docs: gst-launch -> gst-launch-1.0 in example pipelines
...
And some small example pipeline fix-ups.
2015-05-10 11:35:50 +01:00
Stefan Sauer
d5518edf12
fixme: bump leftover 0.11 fixme comments
2014-09-25 21:27:03 +02:00
Tim-Philipp Müller
3c4567f591
filesrc: remove FIXME
...
https://bugzilla.gnome.org/show_bug.cgi?id=735878
2014-09-18 18:57:05 +01:00
Sebastian Dröge
7f9c0d06dd
docs: There is no decodebin2 anymore, don't pretend otherwise
2014-07-08 11:18:05 +02:00
Olivier Crête
f53a8a85a7
filesrc: Ignore seek error on non-seekable files
...
This make it works with FIFOs.
https://bugzilla.gnome.org/show_bug.cgi?id=731176
2014-06-23 16:32:17 -04:00
Руслан Ижбулатов
45c0831835
filesrc: g_memmove() is deprecated
...
https://bugzilla.gnome.org/show_bug.cgi?id=712811
2014-05-04 14:49:36 +01:00
Tim-Philipp Müller
9c821554fc
filesrc: no need for a translated message for impossible error cases
...
The message is too technical anyway, the default message works
just fine here as well.
2014-04-07 15:38:17 +01:00
Vincent Penquerc'h
1a08e22845
filesrc: catch failure to seek back to zero after seek test
...
This should never happen theoretically, but since a transient
failure would get us to silently read wrong data, it's worth
erroring out. And it silence this:
Coverity 206034
2014-04-07 15:24:26 +01:00
Wim Taymans
c80ea6895d
filesrc: don't try to seek to -1 offset
...
The offset can be -1 when we are configured in TIME format. Instead of
failing the seek and erroring, do what and offset of -1 is supposed to
do and simply read from the current offset.
2014-01-07 16:18:37 +01:00
Sebastian Rasmussen
1479aba1cf
tests/filesrc: Set location in wrong state
...
Also remove incorrect comment about code possibly not being reachable
that is now exercised by the filesrc unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=709831
2013-10-13 12:18:57 -04:00
Tim-Philipp Müller
666c8c11c6
Fix FSF address
...
https://bugzilla.gnome.org/show_bug.cgi?id=687520
2012-11-03 20:44:48 +00:00
Sebastian Dröge
389ec66946
basesrc: Add default handler for URI query in GstURIHandler subclasses
2012-07-31 17:26:37 +02:00
Tim-Philipp Müller
a49b9a9946
filesrc: remove references to mmap in comments and debug messages
2012-05-15 19:12:58 +01:00
Raimo Järvi
63234a9dab
gst: Fix compiler warnings on mingw-w64
...
https://bugzilla.gnome.org/show_bug.cgi?id=675525
2012-05-09 09:35:35 +02:00
Руслан Ижбулатов
8a962bc1ab
filesrc: rearrange sys/stat.h inclusion point for MinGW
...
gstplugin.h used to include this for us, but doesn't any longer.
https://bugzilla.gnome.org/show_bug.cgi?id=675171
2012-04-30 21:35:02 +01:00
Tim-Philipp Müller
a63829b4ff
plugins: use new gst_element_class_set_static_metadata()
2012-04-09 13:05:07 +01:00
Tim-Philipp Müller
4348851cd9
Merge remote-tracking branch 'origin/0.10'
...
Conflicts:
gst/gstatomicqueue.c
2012-04-07 15:42:08 +01:00
Tim-Philipp Müller
d05d29d0c9
filesrc: set default block size from local define
...
Doesn't actually change the default value, just makes use of the
define there is. Superficial testing with fakesink and jpegdec did
not reveal improved performance for bigger block sizes, so leave
default as it is.
2012-04-07 15:21:29 +01:00
Wim Taymans
c93cde0a30
filesrc: only update buffer size on short read
2012-03-15 13:42:17 +01:00
Wim Taymans
a521252845
Add new GstMapInfo
...
Use a structure to hold info about the mapping. The application then keeps track
of this state and we can use it to unmap the memory again later.
2012-01-25 11:54:23 +01:00
Tim-Philipp Müller
2c2efb06bb
filesrc: remove "fd" property
...
It's no longer useful, since we don't use mmap any more anyway,
and we might use a different API for I/O in future (such as GIO).
2011-12-26 18:44:39 +00:00
Tim-Philipp Müller
81ce8b76d0
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
plugins/elements/gstfilesrc.c
2011-12-25 12:47:55 +00:00
Tim-Philipp Müller
8a932dbca6
filesrc: return any remaining data on EOS before returning FLOW_UNEXPECTED
2011-12-25 12:42:11 +00:00
Tim-Philipp Müller
cf5de908fb
filesrc: minor cosmetic changes
...
Rename woffset variable, maintain separate bytes_read in addition
to length variable.
2011-12-25 12:29:46 +00:00
Tim-Philipp Müller
f6a4af20b2
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
libs/gst/base/gstbasetransform.c
libs/gst/controller/gstinterpolationcontrolsource.c
libs/gst/controller/gstlfocontrolsource.c
plugins/elements/gstfilesrc.c
Dit not merge controller or basetransform changes.
2011-12-25 11:58:12 +00:00
Vincent Penquerc'h
431fc714c9
filesrc: do not mistake short reads for EOS
...
While local filesystems will usually not cause short reads,
this may happen on seekable files on some remote filesystems.
Instead, loop till we get the requested amount of data, or
an actual EOS (ie, 0 bytes).
https://bugzilla.gnome.org/show_bug.cgi?id=665921
2011-12-12 13:35:06 +00:00
Wim Taymans
e7e948a5bf
filesrc: cleanup error path
2011-12-06 13:47:29 +01:00
Tim-Philipp Müller
f598856765
plugins, tools: update for get_protocols() return value change
2011-11-13 23:25:23 +00:00
Tim-Philipp Müller
dfa9bb8088
elements: update fd + file sources and sinks for GstUriHandler changes
2011-11-13 18:05:24 +00:00
Tim-Philipp Müller
34e3e26467
urihandler: remove "new-uri" signal
...
No one but filesrc used that API. Should probably be replaced by
requiring an "uri" property instead, and then objects can do a
notify on that. Also removed interface structure padding, it's
not needed.
2011-11-13 15:37:40 +00:00
Wim Taymans
ea012d3dd7
pad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
2011-10-10 11:33:51 +02:00
Wim Taymans
b322a401c7
uri: remove some _full variants
2011-06-22 16:38:04 +02:00
Wim Taymans
c35e0de65e
basesrc: add fill vmethod to basesrc
...
Add a new fill virtual method to basesrc. The purpose of this method is to fill
a provided buffer with data.
Add a default implementation of the create method that allocates a buffer and
calls the fill method on it. This would allow the base class to implement
bufferpool and allocator negotiation on behalf of the subclasses.
Fix the blocksize property.
Make filesrc use the new fill method.
2011-06-10 13:04:23 +02:00
Wim Taymans
4d6e4ea9e6
Merge branch 'master' into 0.11
...
Conflicts:
libs/gst/base/gstbasesrc.c
2011-06-09 12:01:02 +02:00
Mark Nauwelaerts
de514c63d1
filesrc/fdsrc: indicate dynamic size handling to basesrc
2011-06-08 20:16:28 +02:00
Wim Taymans
72d0a830ff
filesrc: remove MMAP code
...
Remove the mmap code, it was disabled and probably needs a complete rewrite
anyway if this is to be ported to 0.11.
2011-06-07 17:03:09 +02:00
Sebastian Dröge
3d2127f865
Revert "query: allow _make_writable on query handlers"
...
This reverts commit cf4fbc005c
.
This change did not improve the situation for bindings because
queries are usually created, then directly passed to a function
and not stored elsewhere, and the writability problem with
miniobjects usually happens with buffers or caps instead.
2011-05-17 11:21:41 +02:00
Wim Taymans
cf4fbc005c
query: allow _make_writable on query handlers
...
Pass a GstQuery ** to the query handlers so that they can make the query
writable before using a setter on it.
Port code to new API.
2011-05-10 18:36:33 +02:00
Sebastian Dröge
5020738a6d
elements: Use G_DEFINE_TYPE instead of GST_BOILERPLATE
2011-04-19 11:45:36 +02:00
Wim Taymans
6da19ffeb2
buffer: more buffer updates
2011-03-29 11:07:36 +02:00
Wim Taymans
a12ede3fb1
Merge branch 'master' into 0.11-fdo
...
Conflicts:
gst/gst.c
libs/gst/base/gstcollectpads.c
2011-03-28 20:11:20 +02:00
Wim Taymans
d82c8bd2af
memory: port code to new buffer data API
2011-03-28 20:08:45 +02:00
Jason D. Clinton
a789096c04
build: fix build with -Werror with GCC 4.6.0
...
This touches three areas of code, removes unused variables and discards
return values from two functions with (void).
https://bugzilla.gnome.org/show_bug.cgi?id=645267
2011-03-21 09:29:19 +01:00
Wim Taymans
230c3455ac
Merge branch 'master' into 0.11
...
Conflicts:
gst/gstregistry.h
2011-03-02 11:08:34 +01:00