decodebin2: Update for GstQuery related API changes
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 16 May 2011 15:13:14 +0000 (17:13 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 16 May 2011 15:13:14 +0000 (17:13 +0200)
gst/playback/gstdecodebin2.c

index 140d8e6f631b019a8b422ec0f4bf8c366afbfeac..3ebe7c9f10e481dd7cfd9f16cb2e6effe9fd4d0f 100644 (file)
@@ -2058,7 +2058,7 @@ check_upstream_seekable (GstDecodeBin * dbin, GstPad * pad)
   dbin->upstream_seekable = FALSE;
 
   query = gst_query_new_seeking (GST_FORMAT_BYTES);
-  if (!gst_pad_peer_query (pad, query)) {
+  if (!gst_pad_peer_query (pad, &query)) {
     GST_DEBUG_OBJECT (dbin, "seeking query failed");
     gst_query_unref (query);
     return;