summaryrefslogtreecommitdiffstats
path: root/ext/mplex/gstmplexibitstream.cc
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-14 23:20:41 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-14 23:20:41 +0000
commit87960e43ea268d999cbc3ed5a589f660fb3e3192 (patch)
tree48a676a58e4355eee64d3f14ea205d793809a323 /ext/mplex/gstmplexibitstream.cc
parent7a778ee4b7ec09a1f5b2185c9cceee3910dfbdf2 (diff)
downloadgst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.tar.gz
gst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.tar.bz2
gst-plugins-bad-87960e43ea268d999cbc3ed5a589f660fb3e3192.zip
gst-indent c++ files
Original commit message from CVS: gst-indent c++ files
Diffstat (limited to 'ext/mplex/gstmplexibitstream.cc')
-rw-r--r--ext/mplex/gstmplexibitstream.cc37
1 files changed, 18 insertions, 19 deletions
diff --git a/ext/mplex/gstmplexibitstream.cc b/ext/mplex/gstmplexibitstream.cc
index 6ed78206..612866f5 100644
--- a/ext/mplex/gstmplexibitstream.cc
+++ b/ext/mplex/gstmplexibitstream.cc
@@ -31,9 +31,8 @@
* Class init/exit functions.
*/
-GstMplexIBitStream::GstMplexIBitStream (GstPad *_pad,
- guint buf_size) :
- IBitStream ()
+GstMplexIBitStream::GstMplexIBitStream (GstPad * _pad, guint buf_size):
+IBitStream ()
{
guint8 *data;
@@ -54,8 +53,7 @@ GstMplexIBitStream::GstMplexIBitStream (GstPad *_pad,
if (!ReadIntoBuffer () && buffered == 0) {
GST_ELEMENT_ERROR (gst_pad_get_parent (_pad), RESOURCE, READ, (NULL),
- ("Failed to read from input pad %s",
- gst_pad_get_name (pad)));
+ ("Failed to read from input pad %s", gst_pad_get_name (pad)));
}
}
@@ -68,28 +66,30 @@ GstMplexIBitStream::~GstMplexIBitStream (void)
* Read data.
*/
-size_t
-GstMplexIBitStream::ReadStreamBytes (uint8_t *buf,
- size_t size)
+size_t GstMplexIBitStream::ReadStreamBytes (uint8_t * buf, size_t size)
{
- guint8 *data;
- guint read;
+ guint8 *
+ data;
+ guint
+ read;
if (eos)
return 0;
if ((read = gst_bytestream_peek_bytes (bs, &data, size)) != size) {
- GstEvent *event;
- guint pending;
+ GstEvent *
+ event;
+ guint
+ pending;
gst_bytestream_get_status (bs, &pending, &event);
if (event) {
switch (GST_EVENT_TYPE (event)) {
- case GST_EVENT_EOS:
- eos = TRUE;
- break;
- default:
- break;
+ case GST_EVENT_EOS:
+ eos = TRUE;
+ break;
+ default:
+ break;
}
gst_event_unref (event);
}
@@ -105,8 +105,7 @@ GstMplexIBitStream::ReadStreamBytes (uint8_t *buf,
* Are we at EOS?
*/
-bool
-GstMplexIBitStream::EndOfStream (void)
+bool GstMplexIBitStream::EndOfStream (void)
{
return eos;
}