Whitespace

This commit is contained in:
Xavi Artigas 2012-06-19 12:51:27 +02:00
parent 490eb9b40e
commit 9b52a33ccf

View file

@ -1,8 +1,8 @@
#include <gst/gst.h> #include <gst/gst.h>
#include <string.h> #include <string.h>
#define GRAPH_LENGTH 80 #define GRAPH_LENGTH 80
/* playbin2 flags */ /* playbin2 flags */
typedef enum { typedef enum {
GST_PLAY_FLAG_DOWNLOAD = (1 << 7) /* Enable progressive download (on selected formats) */ GST_PLAY_FLAG_DOWNLOAD = (1 << 7) /* Enable progressive download (on selected formats) */
@ -70,7 +70,7 @@ static void cb_message (GstBus *bus, GstMessage *msg, CustomData *data) {
static gboolean refresh_ui (CustomData *data) { static gboolean refresh_ui (CustomData *data) {
GstQuery *query; GstQuery *query;
gboolean result; gboolean result;
query = gst_query_new_buffering (GST_FORMAT_PERCENT); query = gst_query_new_buffering (GST_FORMAT_PERCENT);
result = gst_element_query (data->pipeline, query); result = gst_element_query (data->pipeline, query);
if (result) { if (result) {
@ -78,10 +78,10 @@ static gboolean refresh_ui (CustomData *data) {
gchar graph[GRAPH_LENGTH + 1]; gchar graph[GRAPH_LENGTH + 1];
GstFormat format = GST_FORMAT_TIME; GstFormat format = GST_FORMAT_TIME;
gint64 position = 0, duration = 0; gint64 position = 0, duration = 0;
memset (graph, ' ', GRAPH_LENGTH); memset (graph, ' ', GRAPH_LENGTH);
graph[GRAPH_LENGTH] = '\0'; graph[GRAPH_LENGTH] = '\0';
n_ranges = gst_query_get_n_buffering_ranges (query); n_ranges = gst_query_get_n_buffering_ranges (query);
for (range = 0; range < n_ranges; range++) { for (range = 0; range < n_ranges; range++) {
gint64 start, stop; gint64 start, stop;
@ -106,9 +106,9 @@ static gboolean refresh_ui (CustomData *data) {
} }
g_print ("\r"); g_print ("\r");
} }
return TRUE; return TRUE;
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {