From 41bfda7843ff7549a613d5ccf71b3d12d6e4f29c Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Wed, 4 Jul 2012 16:31:40 +0200 Subject: [PATCH 1/3] Typo --- gst-sdk/tutorials/basic-tutorial-8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-sdk/tutorials/basic-tutorial-8.c b/gst-sdk/tutorials/basic-tutorial-8.c index 0e94840714..8824e098cd 100644 --- a/gst-sdk/tutorials/basic-tutorial-8.c +++ b/gst-sdk/tutorials/basic-tutorial-8.c @@ -20,7 +20,7 @@ typedef struct _CustomData { } CustomData; /* This method is called by the idle GSource in the mainloop, to feed CHUNK_SIZE bytes into appsrc. - * The ide handler is added to the mainloop when appsrc requests us to start sending data (need-data signal) + * The idle handler is added to the mainloop when appsrc requests us to start sending data (need-data signal) * and is removed when appsrc has enough data (enough-data signal). */ static gboolean push_data (CustomData *data) { From 460cd5fe481fb61716e32baa3374cf9ec66fea3e Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Thu, 5 Jul 2012 13:06:18 +0200 Subject: [PATCH 2/3] Fix property name, it should be "video-sink", even though "video_sink" works fine too :/ --- gst-sdk/tutorials/basic-tutorial-13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-sdk/tutorials/basic-tutorial-13.c b/gst-sdk/tutorials/basic-tutorial-13.c index 710562fbf9..0a2eca0d3b 100644 --- a/gst-sdk/tutorials/basic-tutorial-13.c +++ b/gst-sdk/tutorials/basic-tutorial-13.c @@ -33,7 +33,7 @@ static void send_seek_event (CustomData *data) { if (data->video_sink == NULL) { /* If we have not done so, obtain the sink through which we will send the seek events */ - g_object_get (data->pipeline, "video_sink", &data->video_sink, NULL); + g_object_get (data->pipeline, "video-sink", &data->video_sink, NULL); } /* Send the event */ From c1fae49828c1d71c57efd9e06a3b907715f0e311 Mon Sep 17 00:00:00 2001 From: Xavi Artigas Date: Thu, 5 Jul 2012 17:04:15 +0200 Subject: [PATCH 3/3] Slightly better backward seek. Not working yet, though. --- gst-sdk/tutorials/basic-tutorial-13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-sdk/tutorials/basic-tutorial-13.c b/gst-sdk/tutorials/basic-tutorial-13.c index 0a2eca0d3b..d6a07182e9 100644 --- a/gst-sdk/tutorials/basic-tutorial-13.c +++ b/gst-sdk/tutorials/basic-tutorial-13.c @@ -28,7 +28,7 @@ static void send_seek_event (CustomData *data) { GST_SEEK_TYPE_SET, position, GST_SEEK_TYPE_NONE, 0); } else { seek_event = gst_event_new_seek (data->rate, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE, - GST_SEEK_TYPE_NONE, 0, GST_SEEK_TYPE_SET, position); + GST_SEEK_TYPE_SET, 0, GST_SEEK_TYPE_SET, position); } if (data->video_sink == NULL) {