[rygel-gst-0-10-media-engine] Fix seeking.



commit 5df15be42afd508659ca8eb6a1ff1fce87a41147
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Mon Feb 18 11:10:07 2013 +0100

    Fix seeking.

 src/rygel-gst-data-source.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/rygel-gst-data-source.c b/src/rygel-gst-data-source.c
index 0bf400d..5abec78 100644
--- a/src/rygel-gst-data-source.c
+++ b/src/rygel-gst-data-source.c
@@ -182,14 +182,14 @@ rygel_gst_data_source_perform_seek (RygelGstDataSource *self) {
     stop_type = GST_SEEK_TYPE_SET;
   }
 
-  if (gst_element_seek (GST_ELEMENT (self->priv->pipeline),
-                        1.0,
-                        format,
-                        flags,
-                        GST_SEEK_TYPE_SET,
-                        start,
-                        stop_type,
-                        stop + 1)) {
+  if (!gst_element_seek (GST_ELEMENT (self->priv->pipeline),
+                         1.0,
+                         format,
+                         flags,
+                         GST_SEEK_TYPE_SET,
+                         start,
+                         stop_type,
+                         stop + 1)) {
     GError *error;
 
     g_warning(_("Failed to seek to offsets %" G_GINT64_FORMAT ":%" G_GINT64_FORMAT),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]